We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88ca43d commit 1e5a80aCopy full SHA for 1e5a80a
api/test.d.ts
@@ -0,0 +1 @@
1
+export * from '../dist/api/test' // eslint-disable-line import/export
api/test.js
+module.exports = require('./dist/api/test')
src/api/__tests__/test.js
@@ -0,0 +1,11 @@
+import * as utilsExports from 'ts-jest/utils'
2
+import * as testExports from '../test' // eslint-disable-line import/namespace
3
+
4
+describe('re-exporting ts-jest utils', () => {
5
+ test.each(Object.entries(utilsExports).filter(([key]) => key !== 'default'))(
6
+ 'forwards `%s` export',
7
+ (exportName, exportValue) => {
8
+ expect(testExports).toHaveProperty(exportName, exportValue)
9
+ },
10
+ )
11
+})
src/api/test.js
+export * from 'ts-jest/utils'
0 commit comments