File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
fixtures/configurations/cwd Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1- /* eslint strict: off -- config used for testing only */
2-
31module . exports = {
42 rules : {
53 quotes : 2 ,
Original file line number Diff line number Diff line change @@ -201,14 +201,14 @@ describe("ESLint", () => {
201201 } ) ;
202202
203203 it ( "the default value of 'options.cwd' should be the current working directory." , async ( ) => {
204- process . chdir ( __dirname ) ;
204+ process . chdir ( fixtureDir ) ;
205205 try {
206206 const engine = new ESLint ( { flags } ) ;
207- const results = await engine . lintFiles ( "eslint .js" ) ;
207+ const results = await engine . lintFiles ( "passing .js" ) ;
208208
209209 assert . strictEqual (
210210 path . dirname ( results [ 0 ] . filePath ) ,
211- __dirname ,
211+ fixtureDir ,
212212 ) ;
213213 } finally {
214214 process . chdir ( originalDir ) ;
@@ -629,7 +629,7 @@ describe("ESLint", () => {
629629 it ( "should report the total and per file errors when using local cwd eslint.config.js" , async ( ) => {
630630 eslint = new ESLint ( {
631631 flags,
632- cwd : __dirname ,
632+ cwd : getFixturePath ( "configurations" , "cwd" ) ,
633633 } ) ;
634634
635635 const results = await eslint . lintText ( "var foo = 'bar';" ) ;
@@ -13490,7 +13490,7 @@ describe("ESLint", () => {
1349013490 const originalCwd = process . cwd ( ) ;
1349113491
1349213492 beforeEach ( ( ) => {
13493- process . chdir ( __dirname ) ;
13493+ process . chdir ( fixtureDir ) ;
1349413494 } ) ;
1349513495
1349613496 afterEach ( ( ) => {
You can’t perform that action at this time.
0 commit comments