diff --git a/tests/lib/rules/function-component-definition.js b/tests/lib/rules/function-component-definition.js
index 8f0e96ee17..f5282bf6f7 100644
--- a/tests/lib/rules/function-component-definition.js
+++ b/tests/lib/rules/function-component-definition.js
@@ -807,11 +807,7 @@ ruleTester.run('function-component-definition', rule, {
return
;
}
`,
- output: `
- var Hello: React.FC = function(props) {
- return ;
- }
- `,
+ output: null,
options: [{ namedComponents: 'function-declaration' }],
errors: [{ messageId: 'function-declaration' }],
features: ['types'],
@@ -822,11 +818,7 @@ ruleTester.run('function-component-definition', rule, {
return ;
};
`,
- output: `
- var Hello: React.FC = (props) => {
- return ;
- };
- `,
+ output: null,
options: [{ namedComponents: 'function-declaration' }],
errors: [{ messageId: 'function-declaration' }],
features: ['types'],
@@ -852,11 +844,7 @@ ruleTester.run('function-component-definition', rule, {
return ;
}
`,
- output: `
- function Hello(props: Test) {
- return ;
- }
- `,
+ output: null,
options: [{ namedComponents: 'arrow-function' }],
errors: [{ messageId: 'arrow-function' }],
features: ['types'],
@@ -963,13 +951,7 @@ ruleTester.run('function-component-definition', rule, {
}
}
`,
- output: `
- function wrap(Component) {
- return function(props) {
- return
- }
- }
- `,
+ output: null,
errors: [{ messageId: 'arrow-function' }],
options: [{ unnamedComponents: 'arrow-function' }],
features: ['types'],
diff --git a/tests/lib/rules/jsx-fragments.js b/tests/lib/rules/jsx-fragments.js
index 1ee6fb3fa2..2807a15f75 100644
--- a/tests/lib/rules/jsx-fragments.js
+++ b/tests/lib/rules/jsx-fragments.js
@@ -142,7 +142,7 @@ ruleTester.run('jsx-fragments', rule, {
},
{
code: '<>>',
- output: '<>>', // should get '', but the old TS parser lacks opening/closing Fragment info
+ output: null, // should get '', but the old TS parser lacks opening/closing Fragment info
features: ['fragment', 'no-babel', 'ts', 'no-ts-new'],
options: ['element'],
settings,
diff --git a/tests/lib/rules/jsx-no-useless-fragment.js b/tests/lib/rules/jsx-no-useless-fragment.js
index 22594aa6bf..d1b599a8b2 100644
--- a/tests/lib/rules/jsx-no-useless-fragment.js
+++ b/tests/lib/rules/jsx-no-useless-fragment.js
@@ -194,7 +194,7 @@ ruleTester.run('jsx-no-useless-fragment', rule, {
},
{
code: '<>{"a"}{"b"}>
',
- output: '<>{"a"}{"b"}>
',
+ output: null,
errors: [{ messageId: 'ChildOfHtmlElement', type: 'JSXFragment' }],
features: ['fragment', 'ts-old', 'no-ts-new', 'no-babel', 'no-default'],
},