Skip to content

Commit 34e8c14

Browse files
committed
Fix CI
1 parent 5525209 commit 34e8c14

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ jobs:
4242
node-version: ${{ matrix.node }}
4343
cache: 'yarn'
4444
- run: yarn install --immutable
45-
- run: yarn run test
46-
env:
47-
ENABLE_COVERAGE: 1
45+
- run: yarn run test --coverage
4846
- uses: codecov/codecov-action@v5
4947
with:
5048
fail_ci_if_error: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"scripts": {
2121
"prepare": "yarn run build",
2222
"test": "vitest",
23+
"test-coverage": "vitest --coverage",
2324
"lint": "run-p \"lint:*\"",
2425
"lint:eslint": "eslint",
2526
"lint:prettier": "prettier --check .",

src/angular-parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ function throwErrors<
8686
let { message } = originalError;
8787
{
8888
const match = message.match(/ in .*?@\d+:\d+$/);
89+
/* c8 ignore else @preserve */
8990
if (match) {
9091
message = message.slice(0, match.index);
9192
}

src/source.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export class Source {
4545
}
4646
}
4747

48+
/* c8 ignore next 4 @preserve */
4849
if (range) {
4950
[start, end] = range;
5051
} else if (typeof start === 'number' && typeof end === 'number') {

src/utilities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { LocationInformation, StartEnd } from './types.ts';
22
import type { NGNode } from './types.ts';
33

44
function getCharacterSearchTestFunction(pattern: RegExp | string) {
5+
/* c8 ignore next 3 @preserve */
56
if (typeof pattern === 'string') {
67
return (character: string) => character === pattern;
78
}

vitest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default defineConfig({
66
include: ['**/*.test.ts'],
77
snapshotSerializers: ['jest-snapshot-serializer-raw'],
88
coverage: {
9-
enabled: !!process.env.ENABLE_COVERAGE,
109
reporter: ['lcov', 'text'],
1110
include: ['src/**/*.ts'],
1211
exclude: ['src/index.ts', 'src/helpers.ts'],

0 commit comments

Comments
 (0)