Skip to content

Commit 56382e9

Browse files
test: use main for testing
1 parent a0f62a9 commit 56382e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__test__/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ nock('https://api.github.com')
1818
.reply(200, combinedStatusResponse)
1919

2020
test('it calls console.log with deployed url', async () => {
21-
require('..')
21+
require('../main')
2222
await pWaitFor(() => consola.log.mock.calls.length > 0)
2323

2424
const consolaMessages = consola.log.mock.calls.map(c => c[0])

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
collectCoverage: true,
44
coverageDirectory: './coverage/',
55
collectCoverageFrom: [
6-
'index.js'
6+
'main.js'
77
],
88
moduleFileExtensions: ['js', 'mjs', 'json'],
99
expand: true,

0 commit comments

Comments
 (0)