Commit f26d14ee by Marcus Andersson Committed by GitHub

reverting the changes that failed the e2e tests. (#22714)

parent 49418f1a
const { resolve } = require('path');
const wp = require('@cypress/webpack-preprocessor'); const wp = require('@cypress/webpack-preprocessor');
const packageRoot = resolve(`${__dirname}/../../`);
const packageModules = `${packageRoot}/node_modules`;
const webpackOptions = { const webpackOptions = {
module: { module: {
rules: [ rules: [
{ {
include: modulePath => {
return modulePath.startsWith(packageRoot) && !modulePath.startsWith(packageModules);
},
test: /\.ts$/, test: /\.ts$/,
use: [ use: [
{ {
loader: 'ts-loader', loader: 'ts-loader',
options: {
configFile: `${__dirname}/../tsconfig.json`,
},
}, },
], ],
}, },
......
{ {
"compilerOptions": { "compilerOptions": {
"module": "commonjs",
"types": ["cypress"] "types": ["cypress"]
}, },
"extends": "@grafana/tsconfig", "extends": "../tsconfig.json",
"include": ["**/*.ts"] "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