chore: upgrade jest version and fix ci problem

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

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

@ -111,7 +111,8 @@
"glob": "^7.2.0", "glob": "^7.2.0",
"html-webpack-plugin": "^5.3.2", "html-webpack-plugin": "^5.3.2",
"identity-obj-proxy": "^3.0.0", "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": "^4.1.1",
"less-loader": "^10.0.0", "less-loader": "^10.0.0",
"mini-css-extract-plugin": "^1.6.2", "mini-css-extract-plugin": "^1.6.2",
@ -125,7 +126,7 @@
"source-ref-loader": "^1.0.7", "source-ref-loader": "^1.0.7",
"style-loader": "^3.0.0", "style-loader": "^3.0.0",
"tailchat-plugin-declaration-generator": "workspace:^1.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", "ts-node": "^10.0.0",
"tsconfig-paths": "^3.9.0", "tsconfig-paths": "^3.9.0",
"tsconfig-paths-webpack-plugin": "^3.5.1", "tsconfig-paths-webpack-plugin": "^3.5.1",

@ -2,6 +2,8 @@ const path = require('path');
module.exports = { module.exports = {
process(src, filename, config, options) { 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