mirror of
https://github.com/hanzoai/jest.git
synced 2026-09-24 16:59:57 +00:00
33 lines
998 B
Plaintext
33 lines
998 B
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`shows a proper error from deep requires 1`] = `
|
|
"FAIL __tests__/test.js
|
|
● Test suite failed to run
|
|
|
|
Cannot find module '../package' from 'node_modules/discord.js/src/index.js'
|
|
|
|
Require stack:
|
|
node_modules/discord.js/src/index.js
|
|
__tests__/test.js
|
|
|
|
|
|
However, Jest was able to find:
|
|
'../package.json'
|
|
|
|
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js'].
|
|
|
|
See https://jestjs.io/docs/configuration#modulefileextensions-arraystring
|
|
|
|
8 | 'use strict';
|
|
9 |
|
|
> 10 | require('discord.js');
|
|
| ^
|
|
11 |
|
|
12 | test('dummy', () => {
|
|
13 | expect(1).toBe(1);
|
|
|
|
at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/index.js:<<REPLACED>>)
|
|
at Object.<anonymous> (node_modules/discord.js/src/index.js:21:12)
|
|
at Object.require (__tests__/test.js:10:1)"
|
|
`;
|