Skip to content

Commit e1b89ac

Browse files
committed
chore: update
1 parent 1a607f4 commit e1b89ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/config-check/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { join } from 'node:path';
2+
import stripAnsi from 'strip-ansi';
23
import { buildAndGetResults } from 'test-helper';
34
import { expect, test } from 'vitest';
45

@@ -7,7 +8,7 @@ test('should throw error when lib array not exists or empty', async () => {
78
try {
89
await buildAndGetResults({ fixturePath });
910
} catch (error) {
10-
expect((error as Error).message).toMatchInlineSnapshot(
11+
expect(stripAnsi((error as Error).message)).toMatchInlineSnapshot(
1112
`"Expect "lib" field to be a non-empty array, but got: []."`,
1213
);
1314
}

0 commit comments

Comments
 (0)