Skip to content

test(rule-tester): update test config snapshots to include new disallowAutomaticSingleRunInference option #9013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions packages/rule-tester/tests/RuleTester.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,29 @@ describe('RuleTester', () => {
{
"code": "string based valid test",
"filename": "/some/path/that/totally/exists/file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
},
{
"code": "object based valid test",
"filename": "/some/path/that/totally/exists/file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
},
{
"code": "explicit filename shouldn't be overwritten",
"filename": "/set/in/the/test.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
},
{
"code": "jsx should have the correct filename",
"filename": "/some/path/that/totally/exists/react.tsx",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
"ecmaFeatures": {
"jsx": true,
},
Expand All @@ -213,6 +223,7 @@ describe('RuleTester', () => {
"filename": "/set/in/the/test/file.ts",
"parserOptions": {
"EXPERIMENTAL_useProjectService": false,
"disallowAutomaticSingleRunInference": true,
"project": "tsconfig.test-specific.json",
"tsconfigRootDir": "/set/in/the/test/",
},
Expand All @@ -225,6 +236,9 @@ describe('RuleTester', () => {
},
],
"filename": "/some/path/that/totally/exists/file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
},
]
`);
Expand Down Expand Up @@ -265,11 +279,15 @@ describe('RuleTester', () => {
{
"code": "normal",
"filename": "/some/path/that/totally/exists/set-in-constructor.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
},
{
"code": "jsx",
"filename": "/some/path/that/totally/exists/react-set-in-constructor.tsx",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
"ecmaFeatures": {
"jsx": true,
},
Expand Down Expand Up @@ -461,6 +479,9 @@ describe('RuleTester', () => {
"totally-real-dependency": "10",
},
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
Expand All @@ -469,6 +490,9 @@ describe('RuleTester', () => {
"totally-real-dependency": "10.0",
},
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
Expand All @@ -477,6 +501,9 @@ describe('RuleTester', () => {
"totally-real-dependency": "10.0.0",
},
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
Expand All @@ -490,6 +517,9 @@ describe('RuleTester', () => {
},
],
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": true,
},
{
Expand All @@ -503,6 +533,9 @@ describe('RuleTester', () => {
},
],
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": true,
},
{
Expand All @@ -516,6 +549,9 @@ describe('RuleTester', () => {
},
],
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": true,
},
]
Expand Down Expand Up @@ -591,6 +627,9 @@ describe('RuleTester', () => {
},
},
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
Expand All @@ -601,6 +640,9 @@ describe('RuleTester', () => {
},
},
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
Expand All @@ -616,6 +658,9 @@ describe('RuleTester', () => {
},
],
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": true,
},
{
Expand All @@ -631,6 +676,9 @@ describe('RuleTester', () => {
},
],
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": true,
},
{
Expand All @@ -649,6 +697,9 @@ describe('RuleTester', () => {
},
],
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": true,
},
]
Expand Down Expand Up @@ -702,17 +753,26 @@ describe('RuleTester', () => {
{
"code": "string based is always run",
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
"code": "no constraints is always run",
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
"code": "empty object is always run",
"dependencyConstraints": {},
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
Expand All @@ -721,6 +781,9 @@ describe('RuleTester', () => {
"totally-real-dependency": "10",
},
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
Expand All @@ -731,6 +794,9 @@ describe('RuleTester', () => {
},
],
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
Expand All @@ -742,6 +808,9 @@ describe('RuleTester', () => {
},
],
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": false,
},
{
Expand All @@ -755,6 +824,9 @@ describe('RuleTester', () => {
},
],
"filename": "file.ts",
"parserOptions": {
"disallowAutomaticSingleRunInference": true,
},
"skip": true,
},
]
Expand Down
Loading