We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd39407 commit c40e7aeCopy full SHA for c40e7ae
src/__tests__/__snapshots__/commands.js.snap
src/__tests__/commands.js
@@ -1,8 +1,11 @@
1
+import {queries} from '@testing-library/dom'
2
import {commands} from '../'
3
4
test('exports expected commands', () => {
5
expect(commands).toMatchObject(expect.any(Array))
- expect(commands.map(({name}) => name)).toMatchSnapshot()
6
+ const sortedQueryNames = Object.keys(queries).sort()
7
+ const sortedCommandNames = commands.map(({name}) => name).sort()
8
+ expect(sortedCommandNames).toEqual(sortedQueryNames)
9
commands.forEach(command =>
10
expect(command).toMatchObject({
11
name: expect.any(String),
0 commit comments