diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-07-11 11:13:01 +0000 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-07-11 11:13:01 +0000 |
commit | 5bd4bcc3e3c99fcc46c28b5c8f1b269cec453715 (patch) | |
tree | d51444c20b29a42a34a35ae82e2a3724d284a3ed /jest.config.js | |
parent | af42c169826e68bf641f3010adaacc3ddd4050b3 (diff) | |
download | gitlab-ce-5bd4bcc3e3c99fcc46c28b5c8f1b269cec453715.tar.gz |
Replace path with filename in Jest config
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js index 986b8465eef..e4ac71a1a17 100644 --- a/jest.config.js +++ b/jest.config.js @@ -19,7 +19,7 @@ let testMatch = ['<rootDir>/spec/frontend/**/*_spec.js', '<rootDir>/ee/spec/fron // workaround for eslint-import-resolver-jest only resolving in test files // see https://github.com/JoinColony/eslint-import-resolver-jest#note -const isESLint = module.parent.path.includes('/eslint-import-resolver-jest/'); +const isESLint = module.parent.filename.includes('/eslint-import-resolver-jest/'); if (isESLint) { testMatch = testMatch.map(path => path.replace('_spec.js', '')); } |