1
+ import path from "path" ;
1
2
import { RuleTester , loadFixtureCreator } from "../../util" ;
2
3
3
4
import rule from "../../../lib/rules/use-env-prefix" ;
@@ -17,7 +18,7 @@ const loadFixture = loadFixtureCreator(
17
18
tester . run ( "use-env-prefix" , rule , {
18
19
valid : [
19
20
{
20
- filename : "src/components/code.vue" ,
21
+ filename : path . join ( process . cwd ( ) , "src/components/code.vue" ) ,
21
22
...loadFixture ( {
22
23
fixtureDirectory : "valid/01" ,
23
24
} ) ,
@@ -29,7 +30,7 @@ tester.run("use-env-prefix", rule, {
29
30
] ,
30
31
} ,
31
32
{
32
- filename : "src/client.js" ,
33
+ filename : path . join ( process . cwd ( ) , "src/client.js" ) ,
33
34
...loadFixture ( {
34
35
fixtureDirectory : "valid/02" ,
35
36
filenames : {
@@ -46,7 +47,7 @@ tester.run("use-env-prefix", rule, {
46
47
] ,
47
48
invalid : [
48
49
{
49
- filename : "src/components/code.vue" ,
50
+ filename : path . join ( process . cwd ( ) , "src/components/code.vue" ) ,
50
51
...loadFixture ( {
51
52
fixtureDirectory : "invalid/01" ,
52
53
} ) ,
@@ -63,7 +64,7 @@ tester.run("use-env-prefix", rule, {
63
64
] ,
64
65
} ,
65
66
{
66
- filename : "src/client.js" ,
67
+ filename : path . join ( process . cwd ( ) , "src/client.js" ) ,
67
68
...loadFixture ( {
68
69
fixtureDirectory : "invalid/02" ,
69
70
filenames : {
0 commit comments