mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
ci: Shim WebCrypto on node.js 18 for core tests (#12335)
This commit is contained in:
parent
f924f2a6d7
commit
6c323e4e49
|
@ -1 +1,6 @@
|
||||||
import 'reflect-metadata';
|
import 'reflect-metadata';
|
||||||
|
|
||||||
|
// WebCrypto Polyfill for older versions of Node.js 18
|
||||||
|
if (!globalThis.crypto?.getRandomValues) {
|
||||||
|
globalThis.crypto = require('node:crypto').webcrypto;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue