11import t from "tap" ;
2- import { mustache } from "../lib/mustache.ts " ;
2+ import { mustache } from "../lib/mustache" ;
33
44void t . test ( "mustache" , async ( t ) => {
55 await t . test ( "must include a path" , ( t ) => {
@@ -9,7 +9,7 @@ void t.test("mustache", async (t) => {
99 } ) ;
1010
1111 await t . test ( "should generate" , async ( t ) => {
12- const { mustache } = t . mockRequire < typeof import ( "../lib/mustache.ts " ) > ( "../lib/mustache.ts " , {
12+ const { mustache } = t . mockRequire < typeof import ( "../lib/mustache" ) > ( "../lib/mustache" , {
1313 "node:fs/promises" : {
1414 readFile : ( path : string ) => {
1515 t . equal ( path , "path/to/file.txt" ) ;
@@ -31,7 +31,7 @@ void t.test("mustache", async (t) => {
3131 } ) ;
3232
3333 await t . test ( "should validate partials" , async ( t ) => {
34- const { mustache } = t . mockRequire < typeof import ( "../lib/mustache.ts " ) > ( "../lib/mustache.ts " , {
34+ const { mustache } = t . mockRequire < typeof import ( "../lib/mustache" ) > ( "../lib/mustache" , {
3535 "node:fs/promises" : {
3636 readFile : ( ) => Promise . resolve ( "<% title %>" )
3737 }
@@ -59,7 +59,7 @@ void t.test("mustache", async (t) => {
5959 } ) ;
6060
6161 await t . test ( "should fail validation when base template not found" , async ( t ) => {
62- const { mustache } = t . mockRequire < typeof import ( "../lib/mustache.ts " ) > ( "../lib/mustache.ts " , {
62+ const { mustache } = t . mockRequire < typeof import ( "../lib/mustache" ) > ( "../lib/mustache" , {
6363 "node:fs/promises" : {
6464 readFile : ( ) => Promise . resolve ( "<% title %>" )
6565 }
0 commit comments