Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5cf2bda

Browse files
Update deprecated setupTestFrameworkScriptFile. (#38)
Update enzyme configuration in Jest. `setupTestFrameworkScriptFile` is deprecated in favor of `setupFilesAfterEnv`. [https://jestjs.io/docs/en/configuration#setupfilesafterenv-array](Jest docs)
1 parent 814c472 commit 5cf2bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎7-testing/7.3-enzyme-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The default react-native boilerplate comes with Jest. Integrating Enzyme with Je
2525
...,
2626
"jest": {
2727
...,
28-
"setupTestFrameworkScriptFile": "./node_modules/jest-enzyme/lib/index.js",
28+
"setupFilesAfterEnv": ["./node_modules/jest-enzyme/lib/index.js"],
2929
"setupFiles": ["enzyme-react-16-adapter-setup"]
3030
}
3131
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /