diff options
author | silverwind <me@silverwind.io> | 2021-05-14 08:28:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 07:28:51 +0100 |
commit | 05fb1f61d56c29f5637dc7fba218e92a24145f92 (patch) | |
tree | da93f85c692c2577dfc81798451f2b2a98630287 /jest.config.js | |
parent | 44286e29f0a96e0228ebca567b6694e7b2ffccd3 (diff) | |
download | gitea-05fb1f61d56c29f5637dc7fba218e92a24145f92.tar.gz gitea-05fb1f61d56c29f5637dc7fba218e92a24145f92.zip |
Add jest rootDir and test-frontend dependency (#15860)
- Define jest rootDir to limit where it looks for test files
- Add missing dependency on test-frontend target so it can be ran from a
clean checkout
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js index 317b64d7c1..f95ef1c39c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,8 +1,9 @@ export default { setupFilesAfterEnv: ['jest-extended'], testTimeout: 20000, + rootDir: 'web_src', testMatch: [ - '**/web_src/**/*.test.js', + '<rootDir>/**/*.test.js', ], transform: {}, verbose: false, |