Skip to content

Commit

Permalink
Fixed readdir and openFileSync
Browse files Browse the repository at this point in the history
Added tests
  • Loading branch information
james-pre committed May 22, 2024
1 parent 0523d3f commit 4d930a7
Show file tree
Hide file tree
Showing 10 changed files with 4,416 additions and 1,192 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
- name: Linting
run: npm run lint

#- name: Unit tests
# run: npm run test
- name: Unit tests
run: npm run test

- name: Build
run: npm run build
Expand Down
3 changes: 2 additions & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"testEnvironment": "node",
"extensionsToTreatAsEsm": [".ts"],
"testMatch": ["./**/*.test.ts"],
"transformIgnorePatterns": ["!node_modules/", "!src"],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"transform": {
"^.+\\.ts$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.json",
"tsconfig": "tests/tsconfig.json",
"useESM": true
}
]
Expand Down
Loading

0 comments on commit 4d930a7

Please sign in to comment.