strapi-plugin-testing
Version:
Out-of-the-box automated testing for Strapi
28 lines (23 loc) • 951 B
JavaScript
const testFolderPath = process.env.PWD + "/__tests__/";
const pluginFolderPath =
process.env.PWD + "/node_modules/strapi-plugin-testing";
const testDBfilePath = process.env.PWD + "/__tests__/__config__/database.js";
const originalDBfilePath = process.env.PWD + "/config/database.js";
const originalDBfilePath_tmp = process.env.PWD + "/config/database_original.js";
const sampleTestPath =
process.env.PWD + "/node_modules/strapi-plugin-testing/assets/sample.test";
const CONFIG_ENV_PATH = process.env.PWD + "/config/env/";
const CONFIG_ENV_TEST_PATH = process.env.PWD + "/config/env/test/";
const NODEMODULES_PLUGIN_ASSETS_JESTCONFIG =
process.env.PWD + "/node_modules/strapi-plugin-testing/assets/jest.config.js";
module.exports = {
testFolderPath,
pluginFolderPath,
testDBfilePath,
originalDBfilePath,
originalDBfilePath_tmp,
sampleTestPath,
CONFIG_ENV_PATH,
CONFIG_ENV_TEST_PATH,
NODEMODULES_PLUGIN_ASSETS_JESTCONFIG,
};