Skip to content

Commit

Permalink
ci: attempt to debug windows ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 28, 2020
1 parent 4ad4fea commit ed2be13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playground/testHmrManualDep.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ export const foo = 1

if (import.meta.hot) {
const data = import.meta.hot.data
console.log(`(dep) foo from dispose: ${data.fromDispose}`)
if ('fromDispose' in data) {
console.log(`(dep) foo from dispose: ${data.fromDispose}`)
}

import.meta.hot.dispose((data) => {
console.log(`(dep) foo was: ${foo}`)
Expand Down
1 change: 1 addition & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ describe('vite', () => {
() => browserLogs[browserLogs.length - 1],
'js module hot updated: /testHmrManual.js'
)
console.log(browserLogs)
expect(
browserLogs.slice(browserLogs.length - 4, browserLogs.length - 1)
).toEqual([
Expand Down

0 comments on commit ed2be13

Please sign in to comment.