File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1+ // this file is here so it's easy to register the commands
2+ // `import 'cypress-testing-library/add-commands'`
3+ // eslint-disable-next-line
4+ require ( './dist/add-commands' )
Original file line number Diff line number Diff line change 1717 "precommit" : " kcd-scripts precommit"
1818 },
1919 "files" : [
20- " dist"
20+ " dist" ,
21+ " add-commands.js"
22+ ],
23+ "keywords" : [
24+ " testing" ,
25+ " cypress" ,
26+ " ui" ,
27+ " dom" ,
28+ " integration" ,
29+ " functional" ,
30+ " end-to-end" ,
31+ " e2e"
2132 ],
22- "keywords" : [],
2333 "author" : " Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)" ,
2434 "license" : " MIT" ,
2535 "dependencies" : {
Original file line number Diff line number Diff line change 1+ import { commands } from './'
2+
3+ commands . forEach ( ( { command, name} ) => {
4+ Cypress . Commands . add ( name , command )
5+ } )
6+
7+ /* global Cypress */
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const commands = Object.keys(queries)
55 . map ( queryName => {
66 const commandName = queryName . replace ( / ^ q u e r y / , 'get' )
77 return {
8- commandName,
8+ name : commandName ,
99 command : ( ...args ) => {
1010 const fn = new Function (
1111 'args' ,
You can’t perform that action at this time.
0 commit comments