Skip to content

Commit 6fd982f

Browse files
committed
chore: update
1 parent 08db797 commit 6fd982f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/integration/dts/index.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,13 @@ describe('dts when bundle: false', () => {
159159
const fixturePath = join(__dirname, 'bundle-false', 'tsconfig-path');
160160
await createTempFiles(fixturePath, false);
161161

162-
const { logs, restore } = proxyConsole();
163162
try {
164163
await buildAndGetResults({ fixturePath, type: 'dts' });
165164
} catch (err: any) {
166-
expect(
167-
logs
168-
.map((log) => stripAnsi(log))
169-
.find((log) => log.includes('Failed to resolve tsconfig file')),
170-
).toMatchInlineSnapshot(
171-
`"error Failed to resolve tsconfig file "<ROOT>/tests/integration/dts/bundle-false/tsconfig-path/path_not_exist/tsconfig.json" from <ROOT>/tests/integration/dts/bundle-false/tsconfig-path. Please ensure that the file exists."`,
165+
expect(stripAnsi(err.message)).toMatchInlineSnapshot(
166+
`"Failed to resolve tsconfig file "<ROOT>/tests/integration/dts/bundle-false/tsconfig-path/path_not_exist/tsconfig.json" from <ROOT>/tests/integration/dts/bundle-false/tsconfig-path. Please ensure that the file exists."`,
172167
);
173168
}
174-
restore();
175169
});
176170
});
177171

0 commit comments

Comments
 (0)