remove flush promises

This commit is contained in:
Moriz Wahl 2023-07-24 14:46:55 +02:00
parent 03ae59627d
commit fdf40a6ec7
3 changed files with 2 additions and 11 deletions

View File

@ -36,7 +36,6 @@
"date-fns": "^2.29.3",
"dotenv-webpack": "^7.0.3",
"express": "^4.17.1",
"flush-promises": "^1.0.2",
"graphql": "^15.6.1",
"identity-obj-proxy": "^3.0.0",
"jest": "26.6.3",

View File

@ -1,6 +1,5 @@
import { mount } from '@vue/test-utils'
import UserQuery from './UserQuery'
import flushPromises from 'flush-promises'
const localVue = global.localVue
@ -30,12 +29,10 @@ describe('TransactionLinkList', () => {
expect(wrapper.find('input.test-input-criteria').exists()).toBe(true)
})
describe('has', () => {
describe('set value', () => {
beforeEach(async () => {
jest.clearAllMocks()
await wrapper.find('input.test-input-criteria').setValue('Test2')
await wrapper.find('input.test-input-criteria').trigger('blur')
await flushPromises()
await wrapper.vm.$nextTick()
})
it('emits input', () => {

View File

@ -6423,11 +6423,6 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.2.tgz#64bfed5cb68fe3ca78b3eb214ad97b63bedce561"
integrity sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==
flush-promises@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/flush-promises/-/flush-promises-1.0.2.tgz#4948fd58f15281fed79cbafc86293d5bb09b2ced"
integrity sha512-G0sYfLQERwKz4+4iOZYQEZVpOt9zQrlItIxQAAYAWpfby3gbHrx0osCHz5RLl/XoXevXk0xoN4hDFky/VV9TrA==
flush-write-stream@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8"