From 2fca32233ffe17e169fceece686f729f010d645f Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Fri, 22 Oct 2021 16:44:37 +0530 Subject: [PATCH] chore: add node 17 in CI (#407) --- .github/workflows/nodejs.yml | 2 +- test/__snapshots__/loader.test.js.snap | 2 +- test/helpers/getCompiler.js | 1 + test/loader.test.js | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 88ac8fd8..696da0ed 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -56,7 +56,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [12.x, 14.x, 16.x] + node-version: [12.x, 14.x, 16.x, 17.x] webpack-version: [latest] runs-on: ${{ matrix.os }} diff --git a/test/__snapshots__/loader.test.js.snap b/test/__snapshots__/loader.test.js.snap index b184597f..91fba2d2 100644 --- a/test/__snapshots__/loader.test.js.snap +++ b/test/__snapshots__/loader.test.js.snap @@ -93,7 +93,7 @@ exports[`loader should work with "html-webpack-plugin" plugin: result 1`] = `
Text
- \\"image\\" + \\"image\\" " `; diff --git a/test/helpers/getCompiler.js b/test/helpers/getCompiler.js index 25e3e175..56d39828 100644 --- a/test/helpers/getCompiler.js +++ b/test/helpers/getCompiler.js @@ -17,6 +17,7 @@ export default (fixture, loaderOptions = {}, config = {}) => { publicPath: "/webpack/public/path/", library: "___TEST___", assetModuleFilename: "[name][ext]", + hashFunction: "xxhash64", }, module: { rules: [ diff --git a/test/loader.test.js b/test/loader.test.js index 1ff69e3d..c3b6813b 100644 --- a/test/loader.test.js +++ b/test/loader.test.js @@ -195,6 +195,7 @@ describe("loader", () => { { output: { publicPath: "http://example.com", + hashFunction: "xxhash64", }, module: { rules: [