Skip to content

Commit

Permalink
Jest exclude browser-only tests
Browse files Browse the repository at this point in the history
Otherwise it would complain about "No secure random number generator found" due to being Node.js.
  • Loading branch information
wyatt-howe committed Jul 12, 2021
1 parent d4c4b9e commit 6ded4f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
modulePathIgnorePatterns: ["<rootDir>/test/browser"]
};
1 change: 0 additions & 1 deletion test/browser/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<title>BCl</title>
<meta charset="UTF-8">

<script type="text/javascript" src="sodium.js"></script>
<script type="text/javascript" src="../../dist/bcl.js"></script>
<style>
.ok {
Expand Down

0 comments on commit 6ded4f4

Please sign in to comment.