Commit eaaca91f by Steven Vachon Committed by GitHub

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

parent a551cd24
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: [
{
......
{
"compilerOptions": {
"declaration": false,
"module": "commonjs",
"types": ["cypress"]
},
"extends": "../tsconfig.json",
"extends": "@grafana/tsconfig",
"include": ["**/*.ts"]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment