Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: updated jest to v29 #415

Merged
merged 10 commits into from
Mar 20, 2024
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
Loading