mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
reverting the changes that failed the e2e tests. (#22714)
This commit is contained in:
parent
49418f1a63
commit
f26d14eef1
@ -1,23 +1,13 @@
|
|||||||
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`,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
|
||||||
"types": ["cypress"]
|
"types": ["cypress"]
|
||||||
},
|
},
|
||||||
"extends": "@grafana/tsconfig",
|
"extends": "../tsconfig.json",
|
||||||
"include": ["**/*.ts"]
|
"include": ["**/*.ts"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user