-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ package-lock.json | |
yarn.lock | ||
node_modules | ||
coverage | ||
|
||
# IDE files | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require('./utils/fill-subscription-global-source-data.js') | ||
const { strictEqual } = require('assert') | ||
;(async function () { | ||
const sm1 = await import('../fixtures/something.js') | ||
const sm2 = await import('../fixtures/something.mjs') | ||
|
||
setTimeout(() => { | ||
console.log('global.hello', global.hello) | ||
}, 200) | ||
console.log(`global.subscriptionExecuted: ${global.subscriptionExecuted}`) | ||
strictEqual(sm1.default(), 42) | ||
strictEqual(sm2.default(), 42) | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
global.subscriptionSourceData = [] | ||
const dc = require('diagnostics_channel') | ||
|
||
dc.subscribe('iitm:source:preload', function (message) { | ||
console.log('hello iitm:source:preload url:', message.url) | ||
global.subscriptionExecuted = true | ||
}) | ||
|
||
console.log('fill-subscription-global-source-data subscribed') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// TODO Decide what is the good place for this utils directory | ||
// are utils for source test, but I don't want to execute this | ||
// index.js file in the testsuite |