From 960984c08e9747aec64333dc5c2e247d185dfbf5 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 20 Jan 2020 21:42:55 +0000 Subject: [PATCH] test: separate dev and unit test [release] --- package.json | 2 +- test/{unit => dev}/async-config.size-limit.test.js | 0 test/{unit => dev}/async-config.test.js | 0 test/{unit => dev}/basic.config.defaults.test.js | 0 test/{unit => dev}/basic.dev.test.js | 0 test/{unit => dev}/basic.fail.generate.test.js | 0 test/{unit => dev}/basic.generate.test.js | 0 test/{unit => dev}/basic.plugins.test.js | 0 test/{unit => dev}/basic.ssr.csp.test.js | 0 test/{unit => dev}/basic.ssr.test.js | 0 test/{unit => dev}/children.test.js | 0 test/{unit => dev}/cli.test.js | 0 test/{unit => dev}/custom-app-template.test.js | 0 test/{unit => dev}/custom-dirs.test.js | 0 test/{unit => dev}/dist-options.test.js | 0 test/{unit => dev}/dynamic-routes.test.js | 0 test/{unit => dev}/error.test.js | 0 test/{unit => dev}/express.test.js | 0 test/{unit => dev}/extract-css.test.js | 0 test/{unit => dev}/fallback.test.js | 0 test/{unit => dev}/filenames-query-part.test.js | 0 test/{unit => dev}/generator.test.js | 0 test/{unit => dev}/https.test.js | 0 test/{unit => dev}/modern.client.test.js | 0 test/{unit => dev}/modern.server.test.js | 0 test/{unit => dev}/modern.spa.test.js | 0 test/{unit => dev}/module.test.js | 0 test/{unit => dev}/named-views.test.js | 0 test/{unit => dev}/nuxt.test.js | 0 test/{unit => dev}/renderer.test.js | 0 test/{unit => dev}/route-name-splitter.test.js | 0 test/{unit => dev}/server.listen.test.js | 0 test/{unit => dev}/sockets.test.js | 0 test/{unit => dev}/spa.test.js | 0 test/{unit => dev}/ssr.test.js | 0 test/{unit => dev}/unicode-base.size-limit.test.js | 0 test/{unit => dev}/unicode-base.test.js | 0 test/{unit => dev}/with-config.test.js | 0 test/{unit => dev}/wp.config.test.js | 0 39 files changed, 1 insertion(+), 1 deletion(-) rename test/{unit => dev}/async-config.size-limit.test.js (100%) rename test/{unit => dev}/async-config.test.js (100%) rename test/{unit => dev}/basic.config.defaults.test.js (100%) rename test/{unit => dev}/basic.dev.test.js (100%) rename test/{unit => dev}/basic.fail.generate.test.js (100%) rename test/{unit => dev}/basic.generate.test.js (100%) rename test/{unit => dev}/basic.plugins.test.js (100%) rename test/{unit => dev}/basic.ssr.csp.test.js (100%) rename test/{unit => dev}/basic.ssr.test.js (100%) rename test/{unit => dev}/children.test.js (100%) rename test/{unit => dev}/cli.test.js (100%) rename test/{unit => dev}/custom-app-template.test.js (100%) rename test/{unit => dev}/custom-dirs.test.js (100%) rename test/{unit => dev}/dist-options.test.js (100%) rename test/{unit => dev}/dynamic-routes.test.js (100%) rename test/{unit => dev}/error.test.js (100%) rename test/{unit => dev}/express.test.js (100%) rename test/{unit => dev}/extract-css.test.js (100%) rename test/{unit => dev}/fallback.test.js (100%) rename test/{unit => dev}/filenames-query-part.test.js (100%) rename test/{unit => dev}/generator.test.js (100%) rename test/{unit => dev}/https.test.js (100%) rename test/{unit => dev}/modern.client.test.js (100%) rename test/{unit => dev}/modern.server.test.js (100%) rename test/{unit => dev}/modern.spa.test.js (100%) rename test/{unit => dev}/module.test.js (100%) rename test/{unit => dev}/named-views.test.js (100%) rename test/{unit => dev}/nuxt.test.js (100%) rename test/{unit => dev}/renderer.test.js (100%) rename test/{unit => dev}/route-name-splitter.test.js (100%) rename test/{unit => dev}/server.listen.test.js (100%) rename test/{unit => dev}/sockets.test.js (100%) rename test/{unit => dev}/spa.test.js (100%) rename test/{unit => dev}/ssr.test.js (100%) rename test/{unit => dev}/unicode-base.size-limit.test.js (100%) rename test/{unit => dev}/unicode-base.test.js (100%) rename test/{unit => dev}/with-config.test.js (100%) rename test/{unit => dev}/wp.config.test.js (100%) diff --git a/package.json b/package.json index 34fb41f657..516a91e277 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "nuxt": "node -r esm ./packages/cli/bin/nuxt-cli.js", "pkg": "node -r esm ./scripts/package", "test": "yarn test:fixtures && yarn test:dev && yarn test:unit", - "test:dev": "jest test/unit --forceExit", + "test:dev": "jest test/dev --forceExit", "test:e2e": "jest -i test/e2e --forceExit", "test:fixtures": "jest test/fixtures --forceExit", "test:lint": "yarn lint", diff --git a/test/unit/async-config.size-limit.test.js b/test/dev/async-config.size-limit.test.js similarity index 100% rename from test/unit/async-config.size-limit.test.js rename to test/dev/async-config.size-limit.test.js diff --git a/test/unit/async-config.test.js b/test/dev/async-config.test.js similarity index 100% rename from test/unit/async-config.test.js rename to test/dev/async-config.test.js diff --git a/test/unit/basic.config.defaults.test.js b/test/dev/basic.config.defaults.test.js similarity index 100% rename from test/unit/basic.config.defaults.test.js rename to test/dev/basic.config.defaults.test.js diff --git a/test/unit/basic.dev.test.js b/test/dev/basic.dev.test.js similarity index 100% rename from test/unit/basic.dev.test.js rename to test/dev/basic.dev.test.js diff --git a/test/unit/basic.fail.generate.test.js b/test/dev/basic.fail.generate.test.js similarity index 100% rename from test/unit/basic.fail.generate.test.js rename to test/dev/basic.fail.generate.test.js diff --git a/test/unit/basic.generate.test.js b/test/dev/basic.generate.test.js similarity index 100% rename from test/unit/basic.generate.test.js rename to test/dev/basic.generate.test.js diff --git a/test/unit/basic.plugins.test.js b/test/dev/basic.plugins.test.js similarity index 100% rename from test/unit/basic.plugins.test.js rename to test/dev/basic.plugins.test.js diff --git a/test/unit/basic.ssr.csp.test.js b/test/dev/basic.ssr.csp.test.js similarity index 100% rename from test/unit/basic.ssr.csp.test.js rename to test/dev/basic.ssr.csp.test.js diff --git a/test/unit/basic.ssr.test.js b/test/dev/basic.ssr.test.js similarity index 100% rename from test/unit/basic.ssr.test.js rename to test/dev/basic.ssr.test.js diff --git a/test/unit/children.test.js b/test/dev/children.test.js similarity index 100% rename from test/unit/children.test.js rename to test/dev/children.test.js diff --git a/test/unit/cli.test.js b/test/dev/cli.test.js similarity index 100% rename from test/unit/cli.test.js rename to test/dev/cli.test.js diff --git a/test/unit/custom-app-template.test.js b/test/dev/custom-app-template.test.js similarity index 100% rename from test/unit/custom-app-template.test.js rename to test/dev/custom-app-template.test.js diff --git a/test/unit/custom-dirs.test.js b/test/dev/custom-dirs.test.js similarity index 100% rename from test/unit/custom-dirs.test.js rename to test/dev/custom-dirs.test.js diff --git a/test/unit/dist-options.test.js b/test/dev/dist-options.test.js similarity index 100% rename from test/unit/dist-options.test.js rename to test/dev/dist-options.test.js diff --git a/test/unit/dynamic-routes.test.js b/test/dev/dynamic-routes.test.js similarity index 100% rename from test/unit/dynamic-routes.test.js rename to test/dev/dynamic-routes.test.js diff --git a/test/unit/error.test.js b/test/dev/error.test.js similarity index 100% rename from test/unit/error.test.js rename to test/dev/error.test.js diff --git a/test/unit/express.test.js b/test/dev/express.test.js similarity index 100% rename from test/unit/express.test.js rename to test/dev/express.test.js diff --git a/test/unit/extract-css.test.js b/test/dev/extract-css.test.js similarity index 100% rename from test/unit/extract-css.test.js rename to test/dev/extract-css.test.js diff --git a/test/unit/fallback.test.js b/test/dev/fallback.test.js similarity index 100% rename from test/unit/fallback.test.js rename to test/dev/fallback.test.js diff --git a/test/unit/filenames-query-part.test.js b/test/dev/filenames-query-part.test.js similarity index 100% rename from test/unit/filenames-query-part.test.js rename to test/dev/filenames-query-part.test.js diff --git a/test/unit/generator.test.js b/test/dev/generator.test.js similarity index 100% rename from test/unit/generator.test.js rename to test/dev/generator.test.js diff --git a/test/unit/https.test.js b/test/dev/https.test.js similarity index 100% rename from test/unit/https.test.js rename to test/dev/https.test.js diff --git a/test/unit/modern.client.test.js b/test/dev/modern.client.test.js similarity index 100% rename from test/unit/modern.client.test.js rename to test/dev/modern.client.test.js diff --git a/test/unit/modern.server.test.js b/test/dev/modern.server.test.js similarity index 100% rename from test/unit/modern.server.test.js rename to test/dev/modern.server.test.js diff --git a/test/unit/modern.spa.test.js b/test/dev/modern.spa.test.js similarity index 100% rename from test/unit/modern.spa.test.js rename to test/dev/modern.spa.test.js diff --git a/test/unit/module.test.js b/test/dev/module.test.js similarity index 100% rename from test/unit/module.test.js rename to test/dev/module.test.js diff --git a/test/unit/named-views.test.js b/test/dev/named-views.test.js similarity index 100% rename from test/unit/named-views.test.js rename to test/dev/named-views.test.js diff --git a/test/unit/nuxt.test.js b/test/dev/nuxt.test.js similarity index 100% rename from test/unit/nuxt.test.js rename to test/dev/nuxt.test.js diff --git a/test/unit/renderer.test.js b/test/dev/renderer.test.js similarity index 100% rename from test/unit/renderer.test.js rename to test/dev/renderer.test.js diff --git a/test/unit/route-name-splitter.test.js b/test/dev/route-name-splitter.test.js similarity index 100% rename from test/unit/route-name-splitter.test.js rename to test/dev/route-name-splitter.test.js diff --git a/test/unit/server.listen.test.js b/test/dev/server.listen.test.js similarity index 100% rename from test/unit/server.listen.test.js rename to test/dev/server.listen.test.js diff --git a/test/unit/sockets.test.js b/test/dev/sockets.test.js similarity index 100% rename from test/unit/sockets.test.js rename to test/dev/sockets.test.js diff --git a/test/unit/spa.test.js b/test/dev/spa.test.js similarity index 100% rename from test/unit/spa.test.js rename to test/dev/spa.test.js diff --git a/test/unit/ssr.test.js b/test/dev/ssr.test.js similarity index 100% rename from test/unit/ssr.test.js rename to test/dev/ssr.test.js diff --git a/test/unit/unicode-base.size-limit.test.js b/test/dev/unicode-base.size-limit.test.js similarity index 100% rename from test/unit/unicode-base.size-limit.test.js rename to test/dev/unicode-base.size-limit.test.js diff --git a/test/unit/unicode-base.test.js b/test/dev/unicode-base.test.js similarity index 100% rename from test/unit/unicode-base.test.js rename to test/dev/unicode-base.test.js diff --git a/test/unit/with-config.test.js b/test/dev/with-config.test.js similarity index 100% rename from test/unit/with-config.test.js rename to test/dev/with-config.test.js diff --git a/test/unit/wp.config.test.js b/test/dev/wp.config.test.js similarity index 100% rename from test/unit/wp.config.test.js rename to test/dev/wp.config.test.js