From 6646381a49577ba691131befd7746f272a161ae8 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sat, 3 Feb 2018 13:59:26 +0300 Subject: [PATCH] refactor(tests): rename e2e tests --- build/webpack.e2e.config.js | 6 +++--- e2e/basic.e2e.js => tests/basic.test.js | 0 {e2e => tests}/utils.js | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename e2e/basic.e2e.js => tests/basic.test.js (100%) rename {e2e => tests}/utils.js (100%) diff --git a/build/webpack.e2e.config.js b/build/webpack.e2e.config.js index 95ec305..6e4f084 100644 --- a/build/webpack.e2e.config.js +++ b/build/webpack.e2e.config.js @@ -5,15 +5,15 @@ const base = require("./webpack.base.config"); // Test files are scattered through the whole project. Here we're searching // for them and generating entry file for webpack. -const e2eDir = jetpack.cwd("e2e"); +const e2eDir = jetpack.cwd("tests"); const tempDir = jetpack.cwd("temp"); const entryFilePath = tempDir.path("e2e_entry.js"); const entryFileContent = e2eDir - .find({ matching: "*.e2e.js" }) + .find({ matching: "*.test.js" }) .reduce((fileContent, path) => { const normalizedPath = path.replace(/\\/g, "/"); - return `${fileContent}import "../e2e/${normalizedPath}";\n`; + return `${fileContent}import "../tests/${normalizedPath}";\n`; }, ""); jetpack.write(entryFilePath, entryFileContent); diff --git a/e2e/basic.e2e.js b/tests/basic.test.js similarity index 100% rename from e2e/basic.e2e.js rename to tests/basic.test.js diff --git a/e2e/utils.js b/tests/utils.js similarity index 100% rename from e2e/utils.js rename to tests/utils.js