diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 198c498..021c8ae 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -20,6 +20,13 @@ jobs: - name: Install Dependencies run: yarn install --immutable + - name: Configure c8 + run: | + echo '{"reports-dir": "docs/coverage"}' > .c8rc.json + + - name: Generate Coverage + run: yarn test:coverage:lcov + - name: Create nojekyll run: touch docs/.nojekyll diff --git a/package.json b/package.json index 03218ff..8aeebb7 100644 --- a/package.json +++ b/package.json @@ -42,12 +42,12 @@ "lint:prettier": "pob-root-prettier --check .", "lint:prettier:fix": "pob-root-prettier --write .", "postinstallDev": "pob-root-postinstall", - "test": "TS_NODE_PROJECT=tsconfig.test.json node --test lib/**/*.test.js", + "test": "node --test lib/**/*.test.js", "test-typings": "tsc -p typings/tsconfig.json", - "test:coverage": "TS_NODE_PROJECT=tsconfig.test.json npx c8 --src ./lib node --test lib/**/*.test.js", - "test:coverage:json": "TS_NODE_PROJECT=tsconfig.test.json npx c8 --reporter=json --src ./lib node --test lib/**/*.test.js", - "test:coverage:lcov": "TS_NODE_PROJECT=tsconfig.test.json npx c8 --reporter=lcov --src ./lib node --test lib/**/*.test.js", - "test:watch": "TS_NODE_PROJECT=tsconfig.test.json node --test lib/**/*.test.js" + "test:coverage": "npx c8 --src ./lib node --test lib/**/*.test.js", + "test:coverage:json": "npx c8 --reporter=json --src ./lib node --test lib/**/*.test.js", + "test:coverage:lcov": "npx c8 --reporter=lcov --src ./lib node --test lib/**/*.test.js", + "test:watch": "node --test lib/**/*.test.js" }, "commitlint": { "extends": [