@grafana/e2e: cherry picked 4fecf5a7a6 (#22739)

This commit is contained in:
Steven Vachon
2020-03-12 08:51:05 +01:00
committed by GitHub
parent a551cd2470
commit 78998e6660
2 changed files with 17 additions and 1 deletions
@@ -1,9 +1,23 @@
const { resolve } = require('path');
const wp = require('@cypress/webpack-preprocessor');
const anyNodeModules = /node_modules/;
const packageRoot = resolve(`${__dirname}/../../`);
const packageModules = `${packageRoot}/node_modules`;
const webpackOptions = {
module: {
rules: [
{
include: modulePath => {
if (!anyNodeModules.test(modulePath)) {
// Is a file within the project
return true;
} else {
// Is a file within this package
return modulePath.startsWith(packageRoot) && !modulePath.startsWith(packageModules);
}
},
test: /\.ts$/,
use: [
{
+3 -1
View File
@@ -1,7 +1,9 @@
{
"compilerOptions": {
"declaration": false,
"module": "commonjs",
"types": ["cypress"]
},
"extends": "../tsconfig.json",
"extends": "@grafana/tsconfig",
"include": ["**/*.ts"]
}