@@ -23,11 +23,11 @@ export async function precompile(
23
23
const testCodePaths = testcases ?? getRelatedFiles ( includes , excludes , ( path : string ) => path . endsWith ( ".test.ts" ) ) ;
24
24
25
25
const sourceCodePaths = getRelatedFiles ( includes , excludes , ( path : string ) => ! path . endsWith ( ".test.ts" ) ) ;
26
- const sourceCodeTransfroms : Promise < void > [ ] = [ ] ;
26
+ const sourceCodeTransforms : Promise < void > [ ] = [ ] ;
27
27
for ( const sourceCodePath of sourceCodePaths . values ( ) ) {
28
- sourceCodeTransfroms . push ( transform ( sourceCodePath , transformFunction ) ) ;
28
+ sourceCodeTransforms . push ( transform ( sourceCodePath , transformFunction ) ) ;
29
29
}
30
- await Promise . all ( sourceCodeTransfroms ) ;
30
+ await Promise . all ( sourceCodeTransforms ) ;
31
31
32
32
return {
33
33
testCodePaths,
@@ -43,11 +43,11 @@ export function getRelatedFiles(includes: string[], excludes: string[], filter:
43
43
const exc = ignore . default ( ) . add ( excludes ) ;
44
44
45
45
for ( const path of includeFiles ) {
46
- const relativedPath = relative ( "." , path ) ;
47
- if ( relativedPath . startsWith ( ".." ) ) {
46
+ const relativePath = relative ( "." , path ) ;
47
+ if ( relativePath . startsWith ( ".." ) ) {
48
48
throw new Error ( `file ${ path } out of scope (${ resolve ( "." ) } )` ) ;
49
49
}
50
- if ( exc . ignores ( relativedPath ) ) {
50
+ if ( exc . ignores ( relativePath ) ) {
51
51
continue ; // ab
52
52
}
53
53
if ( filter ( path ) ) {
0 commit comments