Skip to content

Commit a8d6939

Browse files
committed
test: use different hash function because of ssl breaking change
1 parent 454ee12 commit a8d6939

File tree

10 files changed

+14
-8
lines changed

10 files changed

+14
-8
lines changed

test/e2e/fixtures/type-definitions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"license": "MIT",
66
"devDependencies": {
77
"typescript": "~4.9.0",
8-
"webpack": "^5.11.0"
8+
"webpack": "^5.54.0"
99
}
1010
}

test/e2e/fixtures/type-definitions/webpack.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
22

33
const config = {
44
entry: './src/index.ts',
5+
output: {
6+
hashFunction: 'xxhash64', // @see https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
7+
},
58
plugins: [
69
new ForkTsCheckerWebpackPlugin({
710
async: 'invalid_value',

test/e2e/fixtures/typescript-basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dependencies": {
77
"ts-loader": "^5.0.0",
88
"typescript": "^3.8.0",
9-
"webpack": "^5.11.0",
9+
"webpack": "^5.54.0",
1010
"webpack-cli": "^4.0.0",
1111
"webpack-dev-server": "^3.0.0"
1212
}

test/e2e/fixtures/typescript-basic/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
output: {
77
filename: 'index.js',
88
path: path.resolve(__dirname, 'dist'),
9+
hashFunction: 'xxhash64', // @see https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
910
},
1011
module: {
1112
rules: [

test/e2e/fixtures/typescript-monorepo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@babel/preset-typescript": "^7.9.0",
1313
"babel-loader": "^8.1.0",
1414
"typescript": "^3.8.0",
15-
"webpack": "^5.11.0",
15+
"webpack": "^5.54.0",
1616
"webpack-cli": "^4.0.0",
1717
"webpack-dev-server": "^3.0.0"
1818
}

test/e2e/fixtures/typescript-monorepo/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
output: {
77
filename: 'index.js',
88
path: path.resolve(__dirname, 'dist'),
9+
hashFunction: 'xxhash64', // @see https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
910
},
1011
module: {
1112
rules: [

test/e2e/fixtures/typescript-pnp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"pnp-webpack-plugin": "^1.6.4",
88
"ts-loader": "^5.0.0",
99
"typescript": "^3.8.0",
10-
"webpack": "^5.11.0",
10+
"webpack": "^5.54.0",
1111
"webpack-cli": "^4.0.0",
1212
"webpack-dev-server": "^3.0.0"
1313
},

test/e2e/fixtures/typescript-pnp/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
output: {
88
filename: 'index.js',
99
path: path.resolve(__dirname, 'dist'),
10+
hashFunction: 'xxhash64', // @see https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
1011
},
1112
module: {
1213
rules: [

test/e2e/webpack-node-api.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'path';
22

33
describe('Webpack Node Api', () => {
4-
it.each([{ webpack: '5.11.0' }, { webpack: '^5.11.0' }])(
4+
it.each([{ webpack: '5.54.0' }, { webpack: '^5.54.0' }])(
55
'compiles the project successfully with %p',
66
async (dependencies) => {
77
await sandbox.load(path.join(__dirname, 'fixtures/typescript-basic'));

test/e2e/webpack-production-build.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import stripAnsi from 'strip-ansi';
55
import { extractWebpackErrors } from './driver/webpack-errors-extractor';
66

77
describe('Webpack Production Build', () => {
8-
it.each([{ webpack: '5.11.0' }, { webpack: '^5.11.0' }])(
8+
it.each([{ webpack: '5.54.0' }, { webpack: '^5.54.0' }])(
99
'compiles the project successfully with %p',
1010
async (dependencies) => {
1111
await sandbox.load(path.join(__dirname, 'fixtures/typescript-basic'));
@@ -37,7 +37,7 @@ describe('Webpack Production Build', () => {
3737

3838
it('generates .d.ts files in write-dts mode', async () => {
3939
await sandbox.load(path.join(__dirname, 'fixtures/typescript-basic'));
40-
await sandbox.install('yarn', { webpack: '^5.11.0' });
40+
await sandbox.install('yarn', { webpack: '^5.54.0' });
4141

4242
await sandbox.patch(
4343
'webpack.config.js',
@@ -61,7 +61,7 @@ describe('Webpack Production Build', () => {
6161
await sandbox.remove('dist');
6262
});
6363

64-
it.each([{ webpack: '5.11.0' }, { webpack: '^5.11.0' }])(
64+
it.each([{ webpack: '5.54.0' }, { webpack: '^5.54.0' }])(
6565
'exits with error on the project error with %p',
6666
async (dependencies) => {
6767
await sandbox.load(path.join(__dirname, 'fixtures/typescript-basic'));

0 commit comments

Comments
 (0)