@@ -8,7 +8,6 @@ const CLI_PATH = pathJoin(PACKAGE_ROOT_PATH, 'dist/cli.js');
88// Options to pass to `testFixture`.
99interface TestOptions {
1010 // Arguments to pass to the CLI.
11- // Defaults to `['--js-plugins']`.
1211 args ?: string [ ] ;
1312 // Name of the snapshot file.
1413 // Defaults to `output`.
@@ -24,7 +23,7 @@ interface TestOptions {
2423 * @param options - Options to customize the test (optional)
2524 */
2625async function testFixture ( fixtureName : string , options ?: TestOptions ) : Promise < void > {
27- const args = options ?. args ?? [ '--js-plugins' ] ;
26+ const args = options ?. args ?? [ ] ;
2827
2928 await testFixtureWithCommand ( {
3029 command : 'node' ,
@@ -36,24 +35,16 @@ async function testFixture(fixtureName: string, options?: TestOptions): Promise<
3635}
3736
3837describe ( 'oxlint CLI' , ( ) => {
39- it ( 'should lint a directory without errors without JS plugins enabled ' , async ( ) => {
40- await testFixture ( 'built_in_no_errors' , { args : [ ] , snapshotName : 'plugins_disabled' } ) ;
38+ it ( 'should lint a directory without errors' , async ( ) => {
39+ await testFixture ( 'built_in_no_errors' , { args : [ ] } ) ;
4140 } ) ;
4241
43- it ( 'should lint a directory with errors without JS plugins enabled' , async ( ) => {
44- await testFixture ( 'built_in_errors' , { args : [ ] , snapshotName : 'plugins_disabled' } ) ;
45- } ) ;
46-
47- it ( 'should lint a directory without errors with JS plugins enabled' , async ( ) => {
48- await testFixture ( 'built_in_no_errors' , { snapshotName : 'plugins_enabled' } ) ;
49- } ) ;
50-
51- it ( 'should lint a directory with errors with JS plugins enabled' , async ( ) => {
52- await testFixture ( 'built_in_errors' , { snapshotName : 'plugins_enabled' } ) ;
42+ it ( 'should lint a directory with errors' , async ( ) => {
43+ await testFixture ( 'built_in_errors' , { args : [ ] } ) ;
5344 } ) ;
5445
5546 it ( 'should load a custom plugin' , async ( ) => {
56- await testFixture ( 'basic_custom_plugin' , { snapshotName : 'plugins_enabled' } ) ;
47+ await testFixture ( 'basic_custom_plugin' ) ;
5748 } ) ;
5849
5950 it ( 'should load a custom plugin with various import styles' , async ( ) => {
@@ -68,10 +59,6 @@ describe('oxlint CLI', () => {
6859 await testFixture ( 'custom_plugin_via_overrides' ) ;
6960 } ) ;
7061
71- it ( 'should report an error if a custom plugin in config but JS plugins are not enabled' , async ( ) => {
72- await testFixture ( 'basic_custom_plugin' , { args : [ ] , snapshotName : 'plugins_disabled' } ) ;
73- } ) ;
74-
7562 it ( 'should report an error if a custom plugin is missing' , async ( ) => {
7663 await testFixture ( 'missing_custom_plugin' ) ;
7764 } ) ;
@@ -171,7 +158,7 @@ describe('oxlint CLI', () => {
171158
172159 try {
173160 await testFixture ( 'fixes' , {
174- args : [ '--js-plugins' , '-- fix'] ,
161+ args : [ '--fix' ] ,
175162 snapshotName : 'fixes_enabled' ,
176163 async getExtraSnapshotData ( ) {
177164 const codeAfter = await fs . readFile ( fixtureFilePath , 'utf8' ) ;
0 commit comments