chore: upgrade jest version and fix ci problem

Reference: https://github.com/perfsee/perfsee/issues/163
pull/56/head
moonrailgun 2 years ago
parent e2ea551813
commit 8e92d213e1

@ -18,7 +18,6 @@ import { workboxPluginDetailPattern, workboxPluginEntryPattern } from './utils';
import dayjs from 'dayjs';
import { BundleStatsWebpackPlugin } from 'bundle-stats-webpack-plugin';
import { WebpackStatsViewerPlugin } from 'webpack-stats-viewer-plugin';
import { PerfseePlugin } from '@perfsee/webpack';
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('dotenv').config();
@ -183,6 +182,7 @@ if (ANALYSIS) {
}
if (PREF_REPORT) {
const PerfseePlugin = require('@perfsee/webpack').PerfseePlugin;
plugins.push(
new PerfseePlugin({
project: 'tailchat',

@ -111,7 +111,8 @@
"glob": "^7.2.0",
"html-webpack-plugin": "^5.3.2",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.4.5",
"jest": "^29.2.1",
"jest-environment-jsdom": "^29.2.1",
"less": "^4.1.1",
"less-loader": "^10.0.0",
"mini-css-extract-plugin": "^1.6.2",
@ -125,7 +126,7 @@
"source-ref-loader": "^1.0.7",
"style-loader": "^3.0.0",
"tailchat-plugin-declaration-generator": "workspace:^1.0.0",
"ts-jest": "^27.1.2",
"ts-jest": "^29.0.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.9.0",
"tsconfig-paths-webpack-plugin": "^3.5.1",

@ -2,6 +2,8 @@ const path = require('path');
module.exports = {
process(src, filename, config, options) {
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';';
return {
code: 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';',
};
},
};

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save