Skip to content

Commit

Permalink
Temporarily log full stack trace on error
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Dec 20, 2023
1 parent ad97abb commit 654b451
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions js-api-spec/node-package-importer.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ const testPackageImporter = ({
sandbox(dir => {
dir.write(files);
dir.chdir(() => {
const result = compileString(input, {
importers: [new NodePackageImporter(entryPoint)],
});
expect(result.css).toEqualIgnoringWhitespace(output);
try {
const result = compileString(input, {
importers: [new NodePackageImporter(entryPoint)],
});
expect(result.css).toEqualIgnoringWhitespace(output);
} catch (error) {
console.error(error);
throw error;
}
});
});

Expand Down

0 comments on commit 654b451

Please sign in to comment.