Skip to content

Commit 1e9fff0

Browse files
committedJan 7, 2025
ci(node): remove eol node versions
1 parent 2d19ea9 commit 1e9fff0

6 files changed

+18
-7
lines changed
 

‎.github/workflows/health-check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
tests:
1010
strategy:
1111
matrix:
12-
node: [ '14.x', '16.x', '18.x', '20.x', '22.x' ]
12+
node: [ '18.x', '20.x', '22.x' ]
1313
os: [ ubuntu-latest, windows-latest, macos-latest ]
1414
runs-on: ${{ matrix.os }}
1515
name: Node ${{ matrix.node }} - ${{ matrix.os }}

‎.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
tests:
1010
strategy:
1111
matrix:
12-
node: [ '14.x', '16.x', '18.x', '20.x', '22.x' ]
12+
node: [ '18.x', '20.x', '22.x' ]
1313
os: [ ubuntu-latest, windows-latest, macos-latest ]
1414
runs-on: ${{ matrix.os }}
1515
name: Node ${{ matrix.node }} - ${{ matrix.os }}

‎__tests__/outdated-snapshot-reporter.spec.js

+12
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ describe('OutdatedSnapshotReporter', () => {
5757
}
5858

5959
function runJest(cliArgs, environment = {}) {
60+
const ls = childProcess.spawnSync('ls', ['-la'], {
61+
cwd: tmpDir,
62+
encoding: 'utf-8',
63+
env: { ...process.env, ...environment },
64+
});
65+
console.log(ls);
66+
const ls2 = childProcess.spawnSync('ls', ['-la', path.join(jestImageSnapshotDir, 'node_modules/.bin/')], {
67+
cwd: tmpDir,
68+
encoding: 'utf-8',
69+
env: { ...process.env, ...environment },
70+
});
71+
console.log(ls2);
6072
const child = childProcess.spawnSync(jestBinPath, cliArgs, {
6173
cwd: tmpDir,
6274
encoding: 'utf-8',

‎package-lock.json

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"eslint-config-amex": "^7.0.0",
5454
"husky": "^4.2.1",
5555
"image-size": "^0.8.3",
56-
"jest": "^29.0.0",
56+
"jest": "^29.7.0",
5757
"jest-snapshot": "^29.0.0",
5858
"lockfile-lint": "^4.14.0",
5959
"mock-spawn": "^0.2.6",
@@ -106,9 +106,9 @@
106106
"@semantic-release/git",
107107
"@semantic-release/github"
108108
]
109-
},
109+
},
110110
"overrides": {
111-
"eslint-config-amex" : {
111+
"eslint-config-amex": {
112112
"eslint": "$eslint"
113113
}
114114
}

0 commit comments

Comments
 (0)