From 4a8f01779a55e6ada22925ae4811baa1be66e88a Mon Sep 17 00:00:00 2001 From: Khiet Tam Nguyen Date: Sat, 21 Oct 2023 14:56:36 +1100 Subject: [PATCH] removed 14x and cjs/mjs/js from ts-jest transform --- .github/workflows/pipeline.yml | 2 +- jest.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 174b609..63e6d4b 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 16.x, 14.x] + node-version: [18.x, 16.x] fail-fast: true steps: diff --git a/jest.config.ts b/jest.config.ts index df941bc..0e0bcbd 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -9,7 +9,7 @@ const config: Config = { detectOpenHandles: true, testMatch: ['**/*.test.js', '**/*.test.cjs', '**/*.test.mjs', '**/*.test.ts'], transform: { - '^.+\\.(ts|mjs|js|cjs)$': 'ts-jest', + '^.+\\.(ts)$': 'ts-jest', }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node', 'cjs', 'mjs'], collectCoverageFrom: ['src/**/*.ts'],