diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab102ad8a..6d12f72bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,7 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run validate + - run: npm run test:tsc - run: npm run test:unit - name: Coveralls uses: coverallsapp/github-action@master diff --git a/package.json b/package.json index 241336d2d..3bddc94ef 100644 --- a/package.json +++ b/package.json @@ -50,8 +50,9 @@ "lint": "eslint . --ext .ts --cache", "prepare": "npm run build", "start": "node ./bin/server.js -p 3000", - "test": "npm run jest", + "test": "npm run test:tsc && npm run jest", "test:deploy": "test/deploy/validate-package.sh", + "test:tsc": "tsc -p test --noEmit", "test:integration": "jest --coverageThreshold '{}' test/integration", "test:unit": "jest test/unit", "validate": "componentsjs-compile-config urn:solid-server:default:Initializer -c config/config-default.json -f > /dev/null", diff --git a/test/tsconfig.json b/test/tsconfig.json index 4e1103250..8f935b236 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -1,6 +1,9 @@ { "compilerOptions": { + "module": "commonjs", + "target": "es2017", "esModuleInterop": true, + "incremental": true, "noUnusedLocals": true, "strict": true }