Closed puglyfe closed 1 month ago
Reproduction https://astexplorer.net/#/gist/d0edcfa0efac245e5127767be88b3930/e9df7378995891f5c94ccd29a0a4f74072de4eb4
Example input
someSpy.calls.argsFor(0)[1]
Output for parsers: ['babel', 'flow']
['babel', 'flow']
someSpy.mock.calls[0][1] // ✅
Output for parsers: ['babylon', 'ts', 'tsx']
['babylon', 'ts', 'tsx']
someSpy.mock.calls.0[1] // ❌ invalid syntax
Reproduction https://astexplorer.net/#/gist/d0edcfa0efac245e5127767be88b3930/e9df7378995891f5c94ccd29a0a4f74072de4eb4
Example input
Output for parsers:
['babel', 'flow']
Output for parsers:
['babylon', 'ts', 'tsx']