summaryrefslogtreecommitdiff
path: root/jest.config.base.js
diff options
context:
space:
mode:
Diffstat (limited to 'jest.config.base.js')
-rw-r--r--jest.config.base.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/jest.config.base.js b/jest.config.base.js
index 452d58a185a..d4b1ace3b2c 100644
--- a/jest.config.base.js
+++ b/jest.config.base.js
@@ -57,6 +57,7 @@ module.exports = (path, options = {}) => {
[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',
+ '^public(/.*)$': '<rootDir>/public$1',
'emojis(/.*).json': '<rootDir>/fixtures/emojis$1.json',
'^spec/test_constants$': '<rootDir>/spec/frontend/__helpers__/test_constants',
'^jest/(.*)$': '<rootDir>/spec/frontend/$1',
@@ -172,8 +173,9 @@ module.exports = (path, options = {}) => {
'^.+_worker\\.js$': './spec/frontend/__helpers__/web_worker_transformer.js',
'^.+\\.js$': 'babel-jest',
'^.+\\.vue$': 'vue-jest',
- '^.+\\.yml$': './spec/frontend/__helpers__/yaml_transformer.js',
- '^.+\\.(md|zip|png)$': 'jest-raw-loader',
+ 'spec/frontend/editor/schema/ci/yaml_tests/.+\\.(yml|yaml)$':
+ './spec/frontend/__helpers__/yaml_transformer.js',
+ '^.+\\.(md|zip|png|yml|yaml)$': 'jest-raw-loader',
},
transformIgnorePatterns: [`node_modules/(?!(${transformIgnoreNodeModules.join('|')}))`],
timers: 'fake',