ci: fix
This commit is contained in:
parent
8351335856
commit
5482da2ad4
2 changed files with 6 additions and 7 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -10,10 +10,13 @@ export default {
|
|||
"(.+)\\.js": "$1",
|
||||
"^ink-testing-library$": "<rootDir>/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)),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue