const testFile = require('../../helpers/testFile'); const runTest = require('../../helpers/runTest'); const cases = { valid: [ { code: 'arrow' }, { code: 'arrow', options: [{ 'jsx-components': { exclude: ['Icon'] } }], }, { code: '<>hello

{i18next.t("KEY")}

', options: [{ 'jsx-components': { include: ['p'] } }], }, ], invalid: [ { code: '<>hello

world

', options: [{ 'jsx-components': { include: ['span'] } }], errors: 1, }, ], }; runTest('no-literal-string: jsx-components', cases);