Skip to content

Commit

Permalink
test: fix node 20 complaint about setting global
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterMoar committed Dec 18, 2024
1 parent 1cdfa16 commit 3e0d96d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import { useFormStore } from '~/store/form';
import FormEventStreamSettings from '~/components/designer/settings/FormEventStreamSettings.vue';

describe('FormEventStreamSettings.vue', () => {
const crypto = require('crypto').webcrypto;
// Shims the crypto property onto global
global.crypto = crypto;

const pinia = createTestingPinia();
setActivePinia(pinia);

Expand Down
2 changes: 0 additions & 2 deletions app/frontend/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export default defineConfig(({ command, mode }) => {
'~formiojs': resolve(__dirname, './node_modules/formiojs'),
'~font-awesome': resolve(__dirname, './node_modules/font-awesome'),
'~vuetify': resolve(__dirname, './node_modules/vuetify'),
// no clue why crypto is required, but unit tests will not run without it
crypto: 'crypto-js',
},
},
test: {
Expand Down

0 comments on commit 3e0d96d

Please sign in to comment.