Skip to content

Commit

Permalink
Fix test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma4345 committed Apr 16, 2024
1 parent 1ecfaf3 commit 18e5fb6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
module-system: [cjs, esm]
node-version: [18, 20]
arangodb-version:
- arangodb/arangodb:3.11.8
Expand All @@ -36,7 +37,7 @@ jobs:
- run: apk add jq
- run: npm install -g npm@10
- run: npm install
- run: npm test
- run: npm run test:${{ matrix.module-system }}
env:
ARANGO_RELEASE: ${{ matrix.arangodb-version }}
TEST_ARANGODB_URL: http://arangodb:8529
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@
},
"files": [
"**/*",
"!test/**"
"!cjs/test/**",
"!esm/test/**"
],
"scripts": {
"jenkins": "mocha --reporter spec --require source-map-support/register --timeout 0 build/test",
"test": "mocha --reporter spec --require source-map-support/register --timeout 10000 build/test",
"jenkins": "mocha --reporter spec --require source-map-support/register --timeout 0 build/esm/test",
"test": "npm run test:esm",
"test:cjs": "mocha --reporter spec --require source-map-support/register --timeout 10000 build/cjs/test",
"test:esm": "mocha --reporter spec --require source-map-support/register --timeout 10000 build/esm/test",
"pretest": "npm run build",
"build": "rm -rf build && mkdir build && npm-run-all --parallel build:*",
"build:package": "cat package.json | jq 'delpaths([[\"private\"],[\"type\"],[\"scripts\"],[\"devDependencies\"],[\"babel\"],[\"browserslist\"]])' | sed 's/build\\///g' | sed -r 's/src\\/([^\"]+)\\.ts/\\1.js/g' > build/package.json",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"declarationMap": true,
"noEmit": false,
"outDir": "./build/esm/"
},
"exclude": ["./src/test"]
}
}

0 comments on commit 18e5fb6

Please sign in to comment.