File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 77* .map
88.bob /
99* .log
10- jest-resolver.cjs
Original file line number Diff line number Diff line change 1- import { ResolverOptions } from 'jest-resolve' ;
1+ // @ts -check
22
33/** This is module.exports for a reason. Please don't change it. */
4- module . exports = function jestResolver ( path : string , options : ResolverOptions ) {
4+ /**
5+ * @param {string } path
6+ * @param {import("jest-resolve").ResolverOptions } options
7+ */
8+ module . exports = function jestResolver ( path , options ) {
59 /**
610 * Jest does not like .js extensions when not running Jest in EXPERIMENTAL AND TOTALLY UNSTABLE YELL-AT-YA esm mode.
711 * We rewrite it so we can run the tests.
Original file line number Diff line number Diff line change 2929 " README.md"
3030 ],
3131 "scripts" : {
32- "build" : " rimraf dist && tsc && yarn build:jest-resolver" ,
33- "build:jest-resolver" : " rimraf jest-resolver.cjs && tsc jest-resolver.cts" ,
32+ "build" : " rimraf dist && tsc" ,
3433 "lint" : " eslint --cache --cache-location node_modules/.cache/.eslintcache --ignore-path .gitignore ." ,
3534 "lint:prettier" : " prettier --cache --check ." ,
3635 "prepublish" : " yarn build" ,
Original file line number Diff line number Diff line change 11import { expect , it , test } from 'vitest' ;
2- import jestResolver from '../jest-resolver' ;
2+ import * as jestResolver from '../jest-resolver.cjs ' ;
33
44test ( 'jest-resolver' , ( ) => {
55 it ( 'removes .js extension from relative paths' , ( ) => {
You can’t perform that action at this time.
0 commit comments