test: avoid extra logging in test (#19653)

This commit is contained in:
Alexander Akait 2025-07-03 15:34:59 +03:00 committed by GitHub
parent 58aded3461
commit 4fa1daa2c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
function pure() {
console.log('pureFn');
1;
}
export default pure

View File

@ -1,7 +1,6 @@
import common from "../common";
it("entry1 should compile and run", () => {
common()
console.log('entry1');
common();
expect(true).toBe(true)
});

View File

@ -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)
})
});

View File

@ -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)
})
});