mirror of https://github.com/webpack/webpack.git
test: avoid extra logging in test (#19653)
This commit is contained in:
parent
58aded3461
commit
4fa1daa2c2
|
@ -1,5 +1,5 @@
|
|||
function pure() {
|
||||
console.log('pureFn');
|
||||
1;
|
||||
}
|
||||
|
||||
export default pure
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import common from "../common";
|
||||
|
||||
it("entry1 should compile and run", () => {
|
||||
common()
|
||||
console.log('entry1');
|
||||
common();
|
||||
expect(true).toBe(true)
|
||||
});
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
it("entry2 should compile and run", () => {
|
||||
import(/* webpackChunkName: "chunk-reason-webpackChunkName" */'../common').then(common => {
|
||||
common.default()
|
||||
console.log('entry2');
|
||||
common.default();
|
||||
expect(true).toBe(true)
|
||||
})
|
||||
});
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
function nothing() {}
|
||||
|
||||
it("entry3 should compile and run", () => {
|
||||
import(/* webpackChunkName: "chunk-reason-webpackChunkName" */'./a.js').then(a => {
|
||||
console.log(a.default);
|
||||
console.log('entry3');
|
||||
nothing(a.default);
|
||||
expect(true).toBe(true)
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue