Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
94149c77
Commit
94149c77
authored
7 years ago
by
Jeremy Morrell
Committed by
Dan Abramov
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Ignore the yarn cache directory (#2063)
parent
5a7d8e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/scripts/utils/createJestConfig.js
+12
-1
packages/react-scripts/scripts/utils/createJestConfig.js
with
12 additions
and
1 deletion
+12
-1
packages/react-scripts/scripts/utils/createJestConfig.js
+
12
-
1
View file @
94149c77
...
...
@@ -26,7 +26,18 @@ module.exports = (resolve, rootDir, isEjecting) => {
setupFiles
:
[
resolve
(
'
config/polyfills.js
'
)],
setupTestFrameworkScriptFile
:
setupTestsFile
,
testPathIgnorePatterns
:
[
'
<rootDir>[/
\\\\
](build|docs|node_modules|scripts)[/
\\\\
]
'
,
// Ignore the following directories:
// build
// - the build output directory
// .cache
// - the yarn module cache on Ubuntu if $HOME === rootDir
// docs
// - often used to publish to Github Pages
// node_modules
// - ignore tests in dependencies
// scripts
// - directory generated upon eject
'
<rootDir>[/
\\\\
](build|
\\
.cache|docs|node_modules|scripts)[/
\\\\
]
'
,
],
testEnvironment
:
'
node
'
,
testURL
:
'
http://localhost
'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment