Skip to content

Commit 1513d11

Browse files
CopilotGrantBirki
andcommitted
Update CommonJS compatibility
Co-authored-by: GrantBirki <[email protected]>
1 parent 51da4e6 commit 1513d11

File tree

7 files changed

+1542
-163
lines changed

7 files changed

+1542
-163
lines changed

__tests__/functions/deployment.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import {it, test, expect, jest, beforeEach} from '@jest/globals'
1+
const {describe, it, test, expect, jest, beforeEach} = require('@jest/globals')
22

3-
import {
3+
const {
44
createDeploymentStatus,
55
latestActiveDeployment,
66
activeDeployment
7-
} from '../../src/functions/deployment.js'
8-
import * as core from '@actions/core'
9-
import {API_HEADERS} from '../../src/functions/api-headers.js'
7+
} = require('../../src/functions/deployment')
8+
const core = require('@actions/core')
9+
const {API_HEADERS} = require('../../src/functions/api-headers')
1010

1111
var octokit
1212
var context

babel.config.js

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

jest.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@ module.exports = {
1111
branches: 100,
1212
functions: 100
1313
}
14-
},
15-
transform: {
16-
'^.+\\.jsx?$': 'babel-jest'
1714
}
1815
}

0 commit comments

Comments
 (0)