Skip to content

Commit

Permalink
Move experimental warning to next/jest
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Nov 10, 2021
1 parent a0f0f9f commit 3a6ea73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/next/build/jest/jest.ts
Expand Up @@ -25,6 +25,10 @@ function loadClosestPackageJson(dir: string, attempts = 1): any {
}
}

console.warn(
'"next/jest" is currently experimental. https://nextjs.org/docs/messages/experimental-jest-transformer'
)

/*
// Usage in jest.config.js
const nextJest = require('next/jest');
Expand Down
4 changes: 0 additions & 4 deletions packages/next/build/swc/jest-transformer.js
Expand Up @@ -30,10 +30,6 @@ import vm from 'vm'
import { transformSync } from './index'
import { getJestSWCOptions } from './options'

console.warn(
'"next/jest" is currently experimental. https://nextjs.org/docs/messages/experimental-jest-transformer'
)

// Jest use the `vm` [Module API](https://nodejs.org/api/vm.html#vm_class_vm_module) for ESM.
// see https://github.com/facebook/jest/issues/9430
const isSupportEsm = 'Module' in vm
Expand Down

0 comments on commit 3a6ea73

Please sign in to comment.