Skip to content

Commit 14cdc3d

Browse files
committed
update package.json to be more precise
1 parent 4c84a1c commit 14cdc3d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

1-Authentication/1-sign-in-react/SPA/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
]
3131
},
3232
"jest": {
33-
"transformIgnorePatterns": ["!node_modules/"]
33+
"transformIgnorePatterns": ["node_modules/(?!(@azure/msal-browser|@azure/msal-react)/)"]
3434
},
3535
"browserslist": {
3636
"production": [

1-Authentication/1-sign-in-react/SPA/src/sample.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ describe('Ensure that the app starts', () => {
5454
const container = document.createElement('div');
5555
document.body.appendChild(container);
5656
act(() => {
57-
createRoot(container).render(<App msalInstance={pca} />);
57+
createRoot(container).render(<App instance={pca} />);
5858
});
5959

6060
await waitFor(() => expect(handleRedirectSpy).toHaveBeenCalledTimes(1));
6161

62-
expect(root.textContent).toContain('Welcome to the Microsoft Authentication Library For React Tutorial');
62+
expect(container.textContent).toContain('Welcome to the Microsoft Authentication Library For React Tutorial');
6363
});
6464
});

0 commit comments

Comments
 (0)