Skip to content

Commit 0e6406c

Browse files
committed
test: relax assertion on bcrypt.node to work crossplatform, while still checking that .node and bcrypt is mentioned in error message
1 parent 1bac8dd commit 0e6406c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/middleware.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ for (const {
710710
await expect(
711711
runPluginPromise,
712712
'error message should mention c++ addons (.node) file names to help finding the package(s) that contain them',
713-
).rejects.toThrow('bcrypt.node')
713+
).rejects.toThrow(/node_modules\/bcrypt\/.*\.node/)
714714
await expect(
715715
runPluginPromise,
716716
'link to documentation should be provided',

0 commit comments

Comments
 (0)