Skip to content

Commit 8ac46d3

Browse files
committed
fixed tests
1 parent b264620 commit 8ac46d3

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎test/Integration.test.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ describe("Integration", function() {
5858
amd: {
5959
fromOptions: true
6060
},
61+
resolve: {
62+
// cannot resolve should outside the outermost node_modules
63+
// so it is injected here
64+
alias: { should: require.resolve("should") }
65+
},
6166
plugins: {
6267
"after-environment": function() {
6368
this.resolver.plugin("module-resolved", function(request, callback) {

‎test/browsertest/library2config.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ module.exports = {
3030
provide: {
3131
s3: "submodule3"
3232
},
33+
resolve: {
34+
// cannot resolve should outside the outermost node_modules
35+
// so it is injected here
36+
alias: { should: require.resolve("should") }
37+
},
3338
plugins: [
3439
function() {
3540
this.plugin("normal-module-factory", function(nmf) {

0 commit comments

Comments
 (0)