Skip to content

Commit

Permalink
one more pkg.json
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Oct 15, 2021
1 parent 8f85978 commit 63af430
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/jest-message-util/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ const removeInternalStackEntries = (
): Array<string> => {
let pathCounter = 0;

return lines;

return lines.filter(line => {
if (ANONYMOUS_FN_IGNORE.test(line)) {
return false;
Expand Down
6 changes: 6 additions & 0 deletions packages/jest-resolve/src/__mocks__/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "__mocks__",
"version": "1.0.0",
"dependencies": {
}
}
5 changes: 1 addition & 4 deletions packages/jest-resolve/src/__tests__/resolve.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,7 @@ describe('resolveModule', () => {
} as ResolverConfig);
const src = require.resolve('../');
const resolved = resolver.resolveModule(src, 'mockJsDependency', {
paths: [
path.resolve(__dirname, '../../src/__tests__'),
path.resolve(__dirname, '../../src/__mocks__'),
],
paths: [path.resolve(__dirname, '../../src/__mocks__')],
});
expect(resolved).toBe(require.resolve('../__mocks__/mockJsDependency.js'));
});
Expand Down

0 comments on commit 63af430

Please sign in to comment.