diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22522e5ff..eeb0a746e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,18 +10,14 @@ jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18, 20] - steps: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js ${{ matrix.node-version }} + - name: Setup Node.js 20 uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 cache: 'npm' - name: Install dependencies diff --git a/jest.config.mjs b/jest.config.mjs index 88ae0a616..749883881 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -10,10 +10,13 @@ export default { "(.+)\\.js": "$1", "^ink-testing-library$": "/node_modules/ink-testing-library/build/index.js", }, - extensionsToTreatAsEsm: [".ts"], + extensionsToTreatAsEsm: [".ts", ".tsx"], preset: "ts-jest/presets/default-esm", testTimeout: 10000, testEnvironment: "node", + transformIgnorePatterns: [ + "node_modules/(?!(highlight.js|lowlight)/)" + ], globals: { __dirname: path.dirname(fileURLToPath(import.meta.url)), __filename: path.resolve(fileURLToPath(import.meta.url)),