Procházet zdrojové kódy

test: first full test suite passing

Evan You před 4 roky
rodič
revize
8e672c4251

+ 4 - 0
test/unit/features/component/component-async.spec.ts

@@ -21,6 +21,10 @@ describe('Component async', () => {
   beforeAll(function () {
     // @ts-expect-error
     global.setTimeout = function (func, delay) {
+      if (delay >= 1000) {
+        // skip vitest internal timeouts
+        return
+      }
       const id = oldSetTimeout(function () {
         delete timeoutsPending[id]
         func()