Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !6507

Fix jest config watchPlugins

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/zsobral/fix-jest-config into master 6 years ago
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: zsobral

watchPlugins is showing my computer full path after eject

Compare
  • master (base)

and
  • latest version
    b68bd124
    1 commit, 2 years ago

1 file
+ 6
- 2

    Preferences

    File browser
    Compare changes
packages/react-scripts/scripts/utils/createJestConfig.js
+ 6
- 2
  • View file @ b68bd124


@@ -65,8 +65,12 @@ module.exports = (resolve, rootDir, isEjecting) => {
@@ -65,8 +65,12 @@ module.exports = (resolve, rootDir, isEjecting) => {
ext => !ext.includes('mjs')
ext => !ext.includes('mjs')
),
),
watchPlugins: [
watchPlugins: [
require.resolve('jest-watch-typeahead/filename'),
isEjecting
require.resolve('jest-watch-typeahead/testname'),
? '<rootDir>/node_modules/jest-watch-typeahead/filename.js'
 
: require.resolve('jest-watch-typeahead/filename'),
 
isEjecting
 
? '<rootDir>/node_modules/jest-watch-typeahead/testname.js'
 
: require.resolve('jest-watch-typeahead/testname'),
],
],
};
};
if (rootDir) {
if (rootDir) {
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
2
issue: typescript tag: documentation
2
issue: typescript tag: documentation
    Assign labels
  • Manage project labels

Milestone
2.1
2.1
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference: facebook/create-react-app!5533
Source branch: github/fork/zsobral/fix-jest-config

Menu

Explore Projects Groups Snippets