From 79861823daa4a0bdbcca0d04b90ccbd0214bef55 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Sun, 5 Jun 2022 19:36:42 +0200 Subject: [PATCH] Reorganize type tests --- .c8rc.json | 2 +- .xo-config.cjs | 2 +- ava.config.js | 2 +- {test-d => test-types}/.gitignore | 0 {test-d => test-types/commonjs}/assertions-as-type-guards.cts | 0 {test-d => test-types/commonjs}/context.cts | 0 {test-d => test-types/commonjs}/deep-equal.cts | 0 {test-d => test-types/commonjs}/implementation-result.cts | 0 {test-d => test-types/commonjs}/like.cts | 0 {test-d => test-types/commonjs}/macros.cts | 0 {test-d => test-types/commonjs}/plugin.cts | 0 {test-d => test-types/commonjs}/snapshot.cts | 0 {test-d => test-types/commonjs}/teardown.cts | 0 {test-d => test-types/commonjs}/throws.cts | 0 {test-d => test-types/commonjs}/try-commit.cts | 0 {test-d => test-types/module}/assertions-as-type-guards.ts | 0 {test-d => test-types/module}/context.ts | 0 {test-d => test-types/module}/deep-equal.ts | 0 {test-d => test-types/module}/implementation-result.ts | 0 {test-d => test-types/module}/like.ts | 0 {test-d => test-types/module}/macros.ts | 0 {test-d => test-types/module}/plugin.ts | 0 {test-d => test-types/module}/snapshot.ts | 0 {test-d => test-types/module}/teardown.ts | 0 {test-d => test-types/module}/throws.ts | 0 {test-d => test-types/module}/try-commit.ts | 0 tsconfig.json | 4 ++-- 27 files changed, 5 insertions(+), 5 deletions(-) rename {test-d => test-types}/.gitignore (100%) rename {test-d => test-types/commonjs}/assertions-as-type-guards.cts (100%) rename {test-d => test-types/commonjs}/context.cts (100%) rename {test-d => test-types/commonjs}/deep-equal.cts (100%) rename {test-d => test-types/commonjs}/implementation-result.cts (100%) rename {test-d => test-types/commonjs}/like.cts (100%) rename {test-d => test-types/commonjs}/macros.cts (100%) rename {test-d => test-types/commonjs}/plugin.cts (100%) rename {test-d => test-types/commonjs}/snapshot.cts (100%) rename {test-d => test-types/commonjs}/teardown.cts (100%) rename {test-d => test-types/commonjs}/throws.cts (100%) rename {test-d => test-types/commonjs}/try-commit.cts (100%) rename {test-d => test-types/module}/assertions-as-type-guards.ts (100%) rename {test-d => test-types/module}/context.ts (100%) rename {test-d => test-types/module}/deep-equal.ts (100%) rename {test-d => test-types/module}/implementation-result.ts (100%) rename {test-d => test-types/module}/like.ts (100%) rename {test-d => test-types/module}/macros.ts (100%) rename {test-d => test-types/module}/plugin.ts (100%) rename {test-d => test-types/module}/snapshot.ts (100%) rename {test-d => test-types/module}/teardown.ts (100%) rename {test-d => test-types/module}/throws.ts (100%) rename {test-d => test-types/module}/try-commit.ts (100%) diff --git a/.c8rc.json b/.c8rc.json index 3409cc3470..6fcd26a661 100644 --- a/.c8rc.json +++ b/.c8rc.json @@ -1,7 +1,7 @@ { "all": true, "exclude": [ - "{coverage,examples,media,test,test-d,test-tap,types}/**", + "{coverage,examples,media,test,test-types,test-tap,types}/**", "*.config.cjs", "*.d.*(c|m)ts" ], diff --git a/.xo-config.cjs b/.xo-config.cjs index 50684ea66c..896e8001f3 100644 --- a/.xo-config.cjs +++ b/.xo-config.cjs @@ -50,7 +50,7 @@ module.exports = { }, }, { - files: 'test-d/**', + files: 'test-types/**', rules: { 'ava/assertion-arguments': 'off', 'ava/no-ignored-test-files': 'off', diff --git a/ava.config.js b/ava.config.js index 6a542a4e9f..57992596c7 100644 --- a/ava.config.js +++ b/ava.config.js @@ -1,6 +1,6 @@ export default { // eslint-disable-line import/no-anonymous-default-export files: ['test/**', '!test/**/{fixtures,helpers}/**'], - ignoredByWatcher: ['{coverage,docs,media,test-d,test-tap}/**'], + ignoredByWatcher: ['{coverage,docs,media,test-types,test-tap}/**'], environmentVariables: { AVA_FAKE_SCM_ROOT: '.fake-root', // This is an internal test flag. }, diff --git a/test-d/.gitignore b/test-types/.gitignore similarity index 100% rename from test-d/.gitignore rename to test-types/.gitignore diff --git a/test-d/assertions-as-type-guards.cts b/test-types/commonjs/assertions-as-type-guards.cts similarity index 100% rename from test-d/assertions-as-type-guards.cts rename to test-types/commonjs/assertions-as-type-guards.cts diff --git a/test-d/context.cts b/test-types/commonjs/context.cts similarity index 100% rename from test-d/context.cts rename to test-types/commonjs/context.cts diff --git a/test-d/deep-equal.cts b/test-types/commonjs/deep-equal.cts similarity index 100% rename from test-d/deep-equal.cts rename to test-types/commonjs/deep-equal.cts diff --git a/test-d/implementation-result.cts b/test-types/commonjs/implementation-result.cts similarity index 100% rename from test-d/implementation-result.cts rename to test-types/commonjs/implementation-result.cts diff --git a/test-d/like.cts b/test-types/commonjs/like.cts similarity index 100% rename from test-d/like.cts rename to test-types/commonjs/like.cts diff --git a/test-d/macros.cts b/test-types/commonjs/macros.cts similarity index 100% rename from test-d/macros.cts rename to test-types/commonjs/macros.cts diff --git a/test-d/plugin.cts b/test-types/commonjs/plugin.cts similarity index 100% rename from test-d/plugin.cts rename to test-types/commonjs/plugin.cts diff --git a/test-d/snapshot.cts b/test-types/commonjs/snapshot.cts similarity index 100% rename from test-d/snapshot.cts rename to test-types/commonjs/snapshot.cts diff --git a/test-d/teardown.cts b/test-types/commonjs/teardown.cts similarity index 100% rename from test-d/teardown.cts rename to test-types/commonjs/teardown.cts diff --git a/test-d/throws.cts b/test-types/commonjs/throws.cts similarity index 100% rename from test-d/throws.cts rename to test-types/commonjs/throws.cts diff --git a/test-d/try-commit.cts b/test-types/commonjs/try-commit.cts similarity index 100% rename from test-d/try-commit.cts rename to test-types/commonjs/try-commit.cts diff --git a/test-d/assertions-as-type-guards.ts b/test-types/module/assertions-as-type-guards.ts similarity index 100% rename from test-d/assertions-as-type-guards.ts rename to test-types/module/assertions-as-type-guards.ts diff --git a/test-d/context.ts b/test-types/module/context.ts similarity index 100% rename from test-d/context.ts rename to test-types/module/context.ts diff --git a/test-d/deep-equal.ts b/test-types/module/deep-equal.ts similarity index 100% rename from test-d/deep-equal.ts rename to test-types/module/deep-equal.ts diff --git a/test-d/implementation-result.ts b/test-types/module/implementation-result.ts similarity index 100% rename from test-d/implementation-result.ts rename to test-types/module/implementation-result.ts diff --git a/test-d/like.ts b/test-types/module/like.ts similarity index 100% rename from test-d/like.ts rename to test-types/module/like.ts diff --git a/test-d/macros.ts b/test-types/module/macros.ts similarity index 100% rename from test-d/macros.ts rename to test-types/module/macros.ts diff --git a/test-d/plugin.ts b/test-types/module/plugin.ts similarity index 100% rename from test-d/plugin.ts rename to test-types/module/plugin.ts diff --git a/test-d/snapshot.ts b/test-types/module/snapshot.ts similarity index 100% rename from test-d/snapshot.ts rename to test-types/module/snapshot.ts diff --git a/test-d/teardown.ts b/test-types/module/teardown.ts similarity index 100% rename from test-d/teardown.ts rename to test-types/module/teardown.ts diff --git a/test-d/throws.ts b/test-types/module/throws.ts similarity index 100% rename from test-d/throws.ts rename to test-types/module/throws.ts diff --git a/test-d/try-commit.ts b/test-types/module/try-commit.ts similarity index 100% rename from test-d/try-commit.ts rename to test-types/module/try-commit.ts diff --git a/tsconfig.json b/tsconfig.json index 072cb38015..5c8401b8fa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "extends": "@sindresorhus/tsconfig", "include": [ "test", - "test-d", - "test-tap" + "test-tap", + "test-types" ] }