adding tests for generateRndKey (#2932)

changing jest.config.js
transform option  from -
transform: { '^.+\\.ts?$': 'ts-jest' },
to
  transform: {   '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }], },
This commit is contained in:
Dev Gupta
2023-04-17 15:33:30 -07:00
committed by GitHub
parent d68b70b850
commit 1a63880d01
3 changed files with 30 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
transform: { '^.+\\.ts?$': 'ts-jest' },
transform: { '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }], },
testEnvironment: 'node',
testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],