From 6a85f44ce80c7eb2d5b096c5cd63193052f6319d Mon Sep 17 00:00:00 2001 From: Keiichiro Amemiya Date: Thu, 26 Dec 2024 18:06:18 +0100 Subject: [PATCH] move test folder --- .eslintignore | 2 +- .prettierignore | 2 +- {test => __tests__}/.eslintrc.json | 2 +- {test => __tests__}/commands/defaultconfig.test.ts | 0 {test => __tests__}/commands/install.test.ts | 0 {test => __tests__}/commands/schema-types.test.ts | 0 {test => __tests__}/commands/setup.test.ts | 0 {test => __tests__}/commands/uninstall.test.ts | 0 .../fixtures/bundles/config-schema/configschema.json | 0 {test => __tests__}/fixtures/bundles/config-schema/package.json | 0 {test => __tests__}/fixtures/bundles/schema-types/package.json | 0 .../fixtures/bundles/schema-types/schemas/example.json | 0 .../fixtures/bundles/uninstall-test/package.json | 0 .../fixtures/results/schema-types/configschema.d.ts | 0 {test => __tests__}/fixtures/results/schema-types/example.d.ts | 0 {test => __tests__}/fixtures/results/schema-types/index.d.ts | 0 {test => __tests__}/mocks/program.ts | 0 {test => __tests__}/tsconfig.json | 0 package.json | 2 +- 19 files changed, 4 insertions(+), 4 deletions(-) rename {test => __tests__}/.eslintrc.json (58%) rename {test => __tests__}/commands/defaultconfig.test.ts (100%) rename {test => __tests__}/commands/install.test.ts (100%) rename {test => __tests__}/commands/schema-types.test.ts (100%) rename {test => __tests__}/commands/setup.test.ts (100%) rename {test => __tests__}/commands/uninstall.test.ts (100%) rename {test => __tests__}/fixtures/bundles/config-schema/configschema.json (100%) rename {test => __tests__}/fixtures/bundles/config-schema/package.json (100%) rename {test => __tests__}/fixtures/bundles/schema-types/package.json (100%) rename {test => __tests__}/fixtures/bundles/schema-types/schemas/example.json (100%) rename {test => __tests__}/fixtures/bundles/uninstall-test/package.json (100%) rename {test => __tests__}/fixtures/results/schema-types/configschema.d.ts (100%) rename {test => __tests__}/fixtures/results/schema-types/example.d.ts (100%) rename {test => __tests__}/fixtures/results/schema-types/index.d.ts (100%) rename {test => __tests__}/mocks/program.ts (100%) rename {test => __tests__}/tsconfig.json (100%) diff --git a/.eslintignore b/.eslintignore index 263352b..c150fdb 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,4 @@ /node_modules /coverage /dist -/test/fixtures +/__tests__/fixtures diff --git a/.prettierignore b/.prettierignore index 263352b..c150fdb 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,4 @@ /node_modules /coverage /dist -/test/fixtures +/__tests__/fixtures diff --git a/test/.eslintrc.json b/__tests__/.eslintrc.json similarity index 58% rename from test/.eslintrc.json rename to __tests__/.eslintrc.json index 4eddbd4..70dd302 100644 --- a/test/.eslintrc.json +++ b/__tests__/.eslintrc.json @@ -1,6 +1,6 @@ { "parserOptions": { - "project": "test/tsconfig.json" + "project": "__tests__/tsconfig.json" }, "env": { "jest": true diff --git a/test/commands/defaultconfig.test.ts b/__tests__/commands/defaultconfig.test.ts similarity index 100% rename from test/commands/defaultconfig.test.ts rename to __tests__/commands/defaultconfig.test.ts diff --git a/test/commands/install.test.ts b/__tests__/commands/install.test.ts similarity index 100% rename from test/commands/install.test.ts rename to __tests__/commands/install.test.ts diff --git a/test/commands/schema-types.test.ts b/__tests__/commands/schema-types.test.ts similarity index 100% rename from test/commands/schema-types.test.ts rename to __tests__/commands/schema-types.test.ts diff --git a/test/commands/setup.test.ts b/__tests__/commands/setup.test.ts similarity index 100% rename from test/commands/setup.test.ts rename to __tests__/commands/setup.test.ts diff --git a/test/commands/uninstall.test.ts b/__tests__/commands/uninstall.test.ts similarity index 100% rename from test/commands/uninstall.test.ts rename to __tests__/commands/uninstall.test.ts diff --git a/test/fixtures/bundles/config-schema/configschema.json b/__tests__/fixtures/bundles/config-schema/configschema.json similarity index 100% rename from test/fixtures/bundles/config-schema/configschema.json rename to __tests__/fixtures/bundles/config-schema/configschema.json diff --git a/test/fixtures/bundles/config-schema/package.json b/__tests__/fixtures/bundles/config-schema/package.json similarity index 100% rename from test/fixtures/bundles/config-schema/package.json rename to __tests__/fixtures/bundles/config-schema/package.json diff --git a/test/fixtures/bundles/schema-types/package.json b/__tests__/fixtures/bundles/schema-types/package.json similarity index 100% rename from test/fixtures/bundles/schema-types/package.json rename to __tests__/fixtures/bundles/schema-types/package.json diff --git a/test/fixtures/bundles/schema-types/schemas/example.json b/__tests__/fixtures/bundles/schema-types/schemas/example.json similarity index 100% rename from test/fixtures/bundles/schema-types/schemas/example.json rename to __tests__/fixtures/bundles/schema-types/schemas/example.json diff --git a/test/fixtures/bundles/uninstall-test/package.json b/__tests__/fixtures/bundles/uninstall-test/package.json similarity index 100% rename from test/fixtures/bundles/uninstall-test/package.json rename to __tests__/fixtures/bundles/uninstall-test/package.json diff --git a/test/fixtures/results/schema-types/configschema.d.ts b/__tests__/fixtures/results/schema-types/configschema.d.ts similarity index 100% rename from test/fixtures/results/schema-types/configschema.d.ts rename to __tests__/fixtures/results/schema-types/configschema.d.ts diff --git a/test/fixtures/results/schema-types/example.d.ts b/__tests__/fixtures/results/schema-types/example.d.ts similarity index 100% rename from test/fixtures/results/schema-types/example.d.ts rename to __tests__/fixtures/results/schema-types/example.d.ts diff --git a/test/fixtures/results/schema-types/index.d.ts b/__tests__/fixtures/results/schema-types/index.d.ts similarity index 100% rename from test/fixtures/results/schema-types/index.d.ts rename to __tests__/fixtures/results/schema-types/index.d.ts diff --git a/test/mocks/program.ts b/__tests__/mocks/program.ts similarity index 100% rename from test/mocks/program.ts rename to __tests__/mocks/program.ts diff --git a/test/tsconfig.json b/__tests__/tsconfig.json similarity index 100% rename from test/tsconfig.json rename to __tests__/tsconfig.json diff --git a/package.json b/package.json index 1867dbf..84f7986 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "fix": "run-s fix:*", "fix:prettier": "prettier --write \"**/*.ts\"", "fix:eslint": "eslint --fix \"**/*.ts\"", - "test": "tsx --test \"test/**/*.test.ts\"" + "test": "tsx --test" }, "prettier": "@gamesdonequick/prettier-config", "dependencies": {