Skip to content

Commit 5972242

Browse files
authored
Merge pull request #90 from CodinGame/fix-release-config
Fix release config
2 parents 41aecca + cd8970d commit 5972242

14 files changed

+2104
-5788
lines changed
File renamed without changes.

.github/workflows/check_build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
name: Lint commits
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
# we actually need "github.event.pull_request.commits + 1" commit
1515
fetch-depth: 0
16-
- uses: actions/setup-node@v3
16+
- uses: actions/setup-node@v4
1717
- run: npm ci
1818
- run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
1919
check:
@@ -22,11 +22,11 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0
2828
- name: Setup Node.js
29-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
3030
with:
3131
node-version: 20.10.0
3232
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99

1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: Setup Node.js
14-
uses: actions/setup-node@v3
14+
uses: actions/setup-node@v4
1515
with:
1616
node-version: 20.10.0
1717
- name: Install dependencies

FixJSDOMEnvironment.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
const JSDOMEnvironment = require('jest-environment-jsdom').default
1+
import { TestEnvironment } from 'jest-environment-jsdom'
22

3-
4-
class FixJSDOMEnvironment extends JSDOMEnvironment {
3+
class FixJSDOMEnvironment extends TestEnvironment {
54
constructor(...args) {
65
super(...args);
76

@@ -11,4 +10,4 @@ class FixJSDOMEnvironment extends JSDOMEnvironment {
1110
}
1211

1312
// https://github.com/facebook/jest/blob/v29.4.3/website/versioned_docs/version-29.4/Configuration.md#testenvironment-string
14-
module.exports = FixJSDOMEnvironment
13+
export default FixJSDOMEnvironment
File renamed without changes.

browserMock.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
const fs = require('fs/promises')
2-
const { performance } = require('perf_hooks')
3-
const path = require('path')
1+
import fs from 'fs/promises'
2+
import { performance } from 'perf_hooks'
43

54
Object.defineProperty(document, 'queryCommandSupported', {
65
value: jest.fn().mockImplementation(() => true),

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
1+
export default {
22
extends: ['@codingame/commitlint-config-codingame']
33
};
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)