mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Ignore the yarn cache directory (#2063)
This commit is contained in:
committed by
Dan Abramov
parent
5a7d8e899e
commit
94149c77a8
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user