Skip to content

Commit

Permalink
feat!: updated jest to v29 (#415)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:  Updating jest from v26 to v29 changes the default snapshotFormat.
  • Loading branch information
BilalQamar95 committed Mar 20, 2024
1 parent 5779e9f commit c6372b7
Show file tree
Hide file tree
Showing 4 changed files with 4,430 additions and 10,191 deletions.
5 changes: 4 additions & 1 deletion config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ if (fs.existsSync(appEnvConfigPath)) {
}

module.exports = {
testURL: 'http://localhost/',
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: 'http://localhost/',
},
setupFiles: [
path.resolve(__dirname, 'jest/setupTest.js'),
],
Expand Down
10 changes: 5 additions & 5 deletions example/src/__snapshots__/App.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`Basic test should render 1`] = `
</h2>
<IconMock
style={
Object {
{
"width": "10rem",
}
}
Expand All @@ -46,7 +46,7 @@ exports[`Basic test should render 1`] = `
alt="appleFromTsx"
src="icon/mock/path"
style={
Object {
{
"width": "10rem",
}
}
Expand All @@ -58,7 +58,7 @@ exports[`Basic test should render 1`] = `
alt="apple"
src="icon/mock/path"
style={
Object {
{
"width": "10rem",
}
}
Expand All @@ -67,7 +67,7 @@ exports[`Basic test should render 1`] = `
alt="apple"
src="icon/mock/path"
style={
Object {
{
"width": "10rem",
}
}
Expand All @@ -77,7 +77,7 @@ exports[`Basic test should render 1`] = `
alt="apple"
src="test-file-stub"
style={
Object {
{
"width": "10rem",
}
}
Expand Down
Loading

0 comments on commit c6372b7

Please sign in to comment.