1+ import path from "path" ;
12import { RuleTester , loadFixtureCreator } from "../../util" ;
23
34import rule from "../../../lib/rules/use-env-prefix" ;
@@ -17,7 +18,7 @@ const loadFixture = loadFixtureCreator(
1718tester . run ( "use-env-prefix" , rule , {
1819 valid : [
1920 {
20- filename : "src/components/code.vue" ,
21+ filename : path . join ( process . cwd ( ) , "src/components/code.vue" ) ,
2122 ...loadFixture ( {
2223 fixtureDirectory : "valid/01" ,
2324 } ) ,
@@ -29,7 +30,7 @@ tester.run("use-env-prefix", rule, {
2930 ] ,
3031 } ,
3132 {
32- filename : "src/client.js" ,
33+ filename : path . join ( process . cwd ( ) , "src/client.js" ) ,
3334 ...loadFixture ( {
3435 fixtureDirectory : "valid/02" ,
3536 filenames : {
@@ -46,7 +47,7 @@ tester.run("use-env-prefix", rule, {
4647 ] ,
4748 invalid : [
4849 {
49- filename : "src/components/code.vue" ,
50+ filename : path . join ( process . cwd ( ) , "src/components/code.vue" ) ,
5051 ...loadFixture ( {
5152 fixtureDirectory : "invalid/01" ,
5253 } ) ,
@@ -63,7 +64,7 @@ tester.run("use-env-prefix", rule, {
6364 ] ,
6465 } ,
6566 {
66- filename : "src/client.js" ,
67+ filename : path . join ( process . cwd ( ) , "src/client.js" ) ,
6768 ...loadFixture ( {
6869 fixtureDirectory : "invalid/02" ,
6970 filenames : {
0 commit comments