Skip to content

Commit a847705

Browse files
committed
chore: test webpacking
1 parent 739f54b commit a847705

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

e2e/bundle/import.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import * as all from '../../dist';

e2e/bundle/webpack.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const path = require("path");
2+
module.exports = {
3+
mode: "development",
4+
entry: path.resolve(__dirname, "import.js"),
5+
output: {
6+
path: path.resolve(__dirname, "dist"),
7+
filename: "import.js",
8+
},
9+
};

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
"lint:prettier": "prettier \"{src,e2e}/**/*.{ts,tsx,js,jsx,css}\" \"**/*.{md,mdx,yml}\"",
1818
"list-licenses": "license-checker --production --csv --out LICENSE_DEPENDENCIES_ALL",
1919
"prepublishOnly": "npm run build",
20-
"test": "jest --ignoreProjects e2e-node",
20+
"test": "npm run test:unit && npm run test:webpack",
21+
"test:unit": "jest --ignoreProjects e2e-node",
2122
"test:unit:browser": "jest --selectProjects browser-utc",
2223
"test:unit:node": "jest --selectProjects node",
2324
"test:e2e:node": "jest --selectProjects e2e-node --testTimeout 30000 --collectCoverage false",
2425
"test:e2e": "npm run test:e2e:node && npm run test:e2e:browser",
2526
"test:e2e:browser": "playwright test",
26-
"test:e2e:browser:build": "cd e2e/browser/test-app && npm ci"
27+
"test:e2e:browser:build": "cd e2e/browser/test-app && npm ci",
28+
"test:webpack": "webpack --config e2e/bundle/webpack.config.js"
2729
},
2830
"keywords": [
2931
"rdf",

0 commit comments

Comments
 (0)