UNPKG

@async-fn/sinon

Version:

Additional methods to sinon.spy to introduce "late resolve" of promises returned by mock functions. This allows tests that read chronologically, like a story.

13 lines (12 loc) 290 B
module.exports = { clearMocks: true, testEnvironment: 'node', rootDir: '.', transform: { '\\.js$': [ 'babel-jest', { presets: [['@babel/preset-env', { targets: { node: 'current' } }]] }, ], }, transformIgnorePatterns: ['node_modules/(?!@async-fn/core)'], };