@@ -928,6 +928,7 @@ describe("ESLint", () => {
928928
929929it ( "should throw if eslint.config.js file is not present even if overrideConfig was passed" , async ( ) => {
930930eslint = new ESLint ( {
931+ flags,
931932cwd :getFixturePath ( ".." ) ,
932933overrideConfig :{
933934rules :{
@@ -1525,26 +1526,28 @@ describe("ESLint", () => {
15251526
15261527it ( "should throw if eslint.config.js file is not present even if overrideConfig was passed" , async ( ) => {
15271528eslint = new ESLint ( {
1529+ flags,
15281530cwd :getFixturePath ( ".." ) ,
15291531overrideConfig :{
15301532rules :{
15311533"no-unused-vars" :2
15321534}
15331535}
15341536} ) ;
1535- await assert . rejects ( ( ) => eslint . lintFiles ( "fixtures/undef *.js" ) , / C o u l d n o t f i n d c o n f i g f i l e / u) ;
1537+ await assert . rejects ( ( ) => eslint . lintFiles ( "no-config/no-config-file/ *.js" ) , / C o u l d n o t f i n d c o n f i g f i l e / u) ;
15361538} ) ;
15371539
15381540it ( "should throw if eslint.config.js file is not present even if overrideConfig was passed and a file path is given" , async ( ) => {
15391541eslint = new ESLint ( {
1542+ flags,
15401543cwd :getFixturePath ( ".." ) ,
15411544overrideConfig :{
15421545rules :{
15431546"no-unused-vars" :2
15441547}
15451548}
15461549} ) ;
1547- await assert . rejects ( ( ) => eslint . lintFiles ( "fixtures/undef .js" ) , / C o u l d n o t f i n d c o n f i g f i l e / u) ;
1550+ await assert . rejects ( ( ) => eslint . lintFiles ( "no-config/no-config-file/foo .js" ) , / C o u l d n o t f i n d c o n f i g f i l e / u) ;
15481551} ) ;
15491552
15501553it ( "should not throw if eslint.config.js file is not present and overrideConfigFile is `true`" , async ( ) => {
@@ -4643,7 +4646,7 @@ describe("ESLint", () => {
46434646} ) ;
46444647} ) ;
46454648
4646- it ( "should throw ifnon-boolean value is given to 'options.warnIgnored' option " , async ( ) => {
4649+ it ( "should throw ifan invalid value is given to 'patterns' argument " , async ( ) => {
46474650eslint = new ESLint ( { flags} ) ;
46484651await assert . rejects ( ( ) => eslint . lintFiles ( 777 ) , / ' p a t t e r n s ' m u s t b e a n o n - e m p t y s t r i n g o r a n a r r a y o f n o n - e m p t y s t r i n g s / u) ;
46494652await assert . rejects ( ( ) => eslint . lintFiles ( [ null ] ) , / ' p a t t e r n s ' m u s t b e a n o n - e m p t y s t r i n g o r a n a r r a y o f n o n - e m p t y s t r i n g s / u) ;
@@ -5955,20 +5958,6 @@ describe("ESLint", () => {
59555958assert . strictEqual ( results [ 0 ] . output , void 0 ) ;
59565959} ) ;
59575960
5958- it ( "should not fix any rules when fixTypes is used without fix" , async ( ) => {
5959- eslint = new ESLint ( {
5960- flags,
5961- cwd :path . join ( fixtureDir , ".." ) ,
5962- overrideConfigFile :true ,
5963- fix :false ,
5964- fixTypes :[ "layout" ]
5965- } ) ;
5966- const inputPath = getFixturePath ( "fix-types/fix-only-semi.js" ) ;
5967- const results = await eslint . lintFiles ( [ inputPath ] ) ;
5968-
5969- assert . strictEqual ( results [ 0 ] . output , void 0 ) ;
5970- } ) ;
5971-
59725961it ( "should not fix non-style rules when fixTypes has only 'layout'" , async ( ) => {
59735962eslint = new ESLint ( {
59745963 flags,