Update jest setup

This commit is contained in:
Sonny Bakker 2024-08-24 16:15:25 +02:00
parent 9e6be5c807
commit 3152c8f14e
2 changed files with 2 additions and 2 deletions

View file

@ -15,6 +15,6 @@ javascript-tests:
stage: test stage: test
image: node:lts image: node:lts
before_script: before_script:
- npm install - npm ci
script: script:
- npm test - npm test

View file

@ -168,7 +168,7 @@ module.exports = {
// A map from regular expressions to paths to transformers // A map from regular expressions to paths to transformers
transform: { transform: {
"^.+\\.[js|jsx]?$": "babel-jest" "^.+\\.j[s|sx]?$": "babel-jest"
}, },
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation