next.js/packages/next/src/server/node-polyfill-crypto.test.ts
node-polyfill-crypto.test.ts12 lines274 B
/* eslint-env jest */
import './node-polyfill-crypto'

describe('node-polyfill-crypto', () => {
  test('overwrite crypto', async () => {
    expect(global.crypto).not.toBeUndefined()
    const a = {} as Crypto
    global.crypto = a
    expect(global.crypto).toBe(a)
  })
})
Quest for Codev2.0.0
/
SIGN IN