Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
docsBranch: "master",
editLinks: true,
editLinkText: "Edit this page on GitHub",
nav: [
navbar: [
{ text: "Home", link: "/" },
{ text: "Guide", link: "/guide/testing" },
{
Expand Down
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">=12.0.0"
},
"dependencies": {
"@types/webpack": "4.4.17",
"@types/webpack": "5.28.0",
"acorn": "8.6.0",
"connect": "3.7.0",
"fs-extra": "10.0.0",
Expand All @@ -19,20 +19,22 @@
"optional-require": "1.1.8",
"requirejs": "2.3.6",
"serve-static": "1.14.1",
"webpack": "4.46.0",
"webpack": "5.65.0",
"which": "2.0.2"
},
"peerDependencies": {
"karma": ">= 1.7.0",
"karma-chrome-launcher": "2.1.1",
"karma-coverage": "1.1.1",
"karma-mocha": "1.3.0",
"karma-mocha-reporter": "2.2.3",
"karma-openui5": "0.2.2",
"karma-requirejs": "1.1.0",
"karma-chrome-launcher": ">= 2.1.1 < 3.1.0",
"karma-coverage": ">=1.1.1 < 2.1.0",
"karma-mocha": ">= 1.3.0 < 2.0.1",
"karma-mocha-reporter": "^2.2.3",
"karma-openui5": "^0.2.2",
"karma-requirejs": "^1.1.0",
"mocha": "*"
},
"devDependencies": {
"@vuepress/shared-utils": "^1.8.2",
"@vue/component-compiler-utils": "^3.3.0",
"chai": "4.3.4",
"chai-as-promised": "7.1.1",
"chai-string": "1.5.0",
Expand All @@ -41,15 +43,15 @@
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.25.3",
"gitty": "3.7.2",
"jest": "27.4.2",
"jest": "27.4.3",
"jsonfile": "6.1.0",
"npm-run-all": "4.1.5",
"prettier": "2.5.0",
"semver": "7.3.5",
"shx": "0.3.3",
"typedoc": "0.22.10",
"typescript": "4.5.2",
"vuepress": "1.8.2"
"vuepress-next": "^0.13.0"
},
"resolutions": {
"**/mixin-deep": "^1.3.2",
Expand Down
5 changes: 4 additions & 1 deletion src/bundling.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,16 +774,19 @@ const bundling = {
if (err.details) {
console.error(err.details)
reject(err.details)
return
} else {
reject(err)
return
}
}

const info = stats.toJson()

if (stats.hasErrors()) {
console.error(info.errors)
reject(info.errors.join("\n"))
reject(info.errors)
return
}

if (stats.hasWarnings()) {
Expand Down
11 changes: 7 additions & 4 deletions test/bundling_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ describe("The, Exported bundling APIs", () => {
outDir: distFolder,
})
).to.be.rejectedWith(
"Webpack has been initialised using a configuration object that does not match the API schema"
"Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema."
)
})

Expand All @@ -775,9 +775,12 @@ describe("The, Exported bundling APIs", () => {
bundler,
outDir: distFolder,
})
).to.be.rejectedWith(
"./rapidstart/service/b2.js\nModule not found: Error: Can't resolve 'bamba'"
)
).to.be.rejectedWith([
{
message: `Module not found: Error: Can't resolve 'bamba' in 'C:\\Users\\I051950\\repos\\webide-client-tools\\test\\resources\\webpack_error\\rapidstart\\service'`,
moduleName: `./rapidstart/service/b2.js`,
},
])
})

afterEach(() => {
Expand Down
Loading