From 3152c8f14ee31773f22804d195822405f460c004 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Sat, 24 Aug 2024 16:15:25 +0200 Subject: [PATCH] Update jest setup --- gitlab-ci/test.yml | 2 +- jest.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitlab-ci/test.yml b/gitlab-ci/test.yml index 6053aae..7ef77f2 100644 --- a/gitlab-ci/test.yml +++ b/gitlab-ci/test.yml @@ -15,6 +15,6 @@ javascript-tests: stage: test image: node:lts before_script: - - npm install + - npm ci script: - npm test diff --git a/jest.config.js b/jest.config.js index a9a62f6..0746761 100644 --- a/jest.config.js +++ b/jest.config.js @@ -168,7 +168,7 @@ module.exports = { // A map from regular expressions to paths to transformers 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