Skip to content

Commit 50abb51

Browse files
authored
Merge pull request #79 from jr-codes/updates
Updates
2 parents 5045632 + 0989f8e commit 50abb51

4 files changed

Lines changed: 2706 additions & 2338 deletions

File tree

.github/workflows/stale.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

lib/__tests__/wire.run.test.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,21 @@ describe('wire: run', () => {
3939
scriptPaths: ['path/to/eslint.js', 'path/to/jest.js'],
4040
expectedNodeArgs: ['--inspect', 'path/to/jest.js', '-i'],
4141
},
42-
])('handles %j', async ({ processArgs, scriptPaths, expectedNodeArgs }) => {
43-
process.argv = ['', '', ...processArgs]
42+
])(
43+
'handles script %j',
44+
async ({ processArgs, scriptPaths, expectedNodeArgs }) => {
45+
process.argv = ['', '', ...processArgs]
4446

45-
const wiredRun = wire(scriptPaths)
46-
await wiredRun()
47+
const wiredRun = wire(scriptPaths)
48+
await wiredRun()
4749

48-
expect(mockRun).toHaveBeenCalledWith(
49-
'node',
50-
expectedNodeArgs,
51-
expect.any(Object)
52-
)
53-
})
50+
expect(mockRun).toHaveBeenCalledWith(
51+
'node',
52+
expectedNodeArgs,
53+
expect.any(Object)
54+
)
55+
}
56+
)
5457

5558
it.each([
5659
{
@@ -100,7 +103,7 @@ describe('wire: run', () => {
100103
expectedNodeArgs: ['--inspect-brk', 'path/to/jest.js', '-i'],
101104
},
102105
])(
103-
'handles %j',
106+
'handles command %j',
104107
async ({ processArgs, commands, scriptPaths, expectedNodeArgs }) => {
105108
process.argv = ['', '', ...processArgs]
106109

0 commit comments

Comments
 (0)