File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,18 @@ test.each(['input', 'change'])(
206
206
} ,
207
207
)
208
208
209
+ test ( 'does not warn when disabled via env var' , async ( ) => {
210
+ process . env . VTL_SKIP_WARN_EVENT_UPDATE = 'true'
211
+
212
+ const { getByTestId} = render ( {
213
+ template : `<input type="text" data-testid="test-update" />` ,
214
+ } )
215
+
216
+ await fireEvent . input ( getByTestId ( 'test-update' ) , 'hello' )
217
+
218
+ expect ( console . warn ) . not . toHaveBeenCalled ( )
219
+ } )
220
+
209
221
test ( 'fireEvent.update does not trigger warning messages' , async ( ) => {
210
222
const { getByTestId} = render ( {
211
223
template : `<input type="text" data-testid="test-update" />` ,
Original file line number Diff line number Diff line change 1
1
import '@testing-library/jest-dom'
2
2
import fetch from 'isomorphic-unfetch'
3
- import { render , fireEvent , screen } from '..'
4
3
import { DefaultApolloClient } from '@vue/apollo-composable'
5
4
import ApolloClient from 'apollo-boost'
6
5
import { setupServer } from 'msw/node'
7
6
import { graphql } from 'msw'
7
+ import { render , fireEvent , screen } from '..'
8
8
import Component from './components/VueApollo.vue'
9
9
10
10
// Since vue-apollo doesn't provide a MockProvider for Vue,
You can’t perform that action at this time.
0 commit comments