diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-03 09:12:48 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-03 09:12:48 +0000 |
commit | 11c2f3b08c3bab4718a97360d1502f90793d028b (patch) | |
tree | 2ae6e0dcd7283bfcabb76e1857108c60a649a8cc /jest.config.base.js | |
parent | 829c7542e8927a832df7a39ef241882c39c93399 (diff) | |
download | gitlab-ce-11c2f3b08c3bab4718a97360d1502f90793d028b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'jest.config.base.js')
-rw-r--r-- | jest.config.base.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/jest.config.base.js b/jest.config.base.js index 34134d6983b..cc275c3ed0f 100644 --- a/jest.config.base.js +++ b/jest.config.base.js @@ -47,6 +47,9 @@ module.exports = (path, options = {}) => { // temporary alias until we replace all `flash` imports for `alert` // https://gitlab.com/gitlab-org/gitlab/-/merge_requests/109449 '^~/flash$': '<rootDir>/app/assets/javascripts/alert', + [TEST_FIXTURES_PATTERN]: '<rootDir>/tmp/tests/frontend/fixtures$1', + '^test_fixtures_static(/.*)$': '<rootDir>/spec/frontend/fixtures/static$1', + '\\.(jpg|jpeg|png|svg|css)(\\?\\w+)?$': '<rootDir>/spec/frontend/__mocks__/file_mock.js', '^~(/.*)\\?(worker|raw)$': '<rootDir>/app/assets/javascripts$1', '^(.*)\\?(worker|raw)$': '$1', '^~(/.*)$': '<rootDir>/app/assets/javascripts$1', @@ -60,10 +63,6 @@ module.exports = (path, options = {}) => { '^any_else_ce(/.*)$': '<rootDir>/app/assets/javascripts$1', '^helpers(/.*)$': '<rootDir>/spec/frontend/__helpers__$1', '^vendor(/.*)$': '<rootDir>/vendor/assets/javascripts$1', - [TEST_FIXTURES_PATTERN]: '<rootDir>/tmp/tests/frontend/fixtures$1', - '^test_fixtures_static(/.*)$': '<rootDir>/spec/frontend/fixtures/static$1', - '\\.(jpg|jpeg|png|svg|css)$': '<rootDir>/spec/frontend/__mocks__/file_mock.js', - '\\.svg\\?url$': '<rootDir>/spec/frontend/__mocks__/file_mock.js', '^public(/.*)$': '<rootDir>/public$1', 'emojis(/.*).json': '<rootDir>/fixtures/emojis$1.json', '^spec/test_constants$': '<rootDir>/spec/frontend/__helpers__/test_constants', |