Skip to content

Commit 0d1637c

Browse files
committed
CI
1 parent 9185262 commit 0d1637c

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/node.js.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
os: [ubuntu-latest, windows-latest] # Remove windows as tests fail on `\r\n` style newlines
19-
node-version: [12, 14, 16, 18, 20, 22, 23]
18+
# os: [ubuntu-latest, windows-latest]
19+
# node-version: [12, 14, 16, 18, 20, 22, 23]
20+
os: [windows-latest]
21+
node-version: [22]
2022

2123
steps:
2224
- uses: actions/checkout@v4

test/caching.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,25 @@ import path from 'path'
77
/* tests need to run with a maxConcurrency of 1 as `jsdoc.cache` is shared between tests */
88
const [test, only, skip] = [new Map(), new Map(), new Map()]
99

10-
test.set('.explain({ files, cache: true })', async function () {
10+
only.set('.explain({ files, cache: true })', async function () {
1111
const f = new Fixture('class-all')
1212
jsdoc.cache.dir = 'tmp/test/cache1'
1313
await jsdoc.cache.clear()
1414
let output = await jsdoc.explain({ files: f.sourcePath, cache: true })
15+
console.log('======BEFORE')
16+
console.log(output)
1517
output = Fixture.normaliseNewLines(output)
16-
const cachedFiles = readdirSync(jsdoc.cache.dir)
17-
.map(file => path.resolve(jsdoc.cache.dir, file))
18-
a.equal(cachedFiles.length, 1)
19-
a.deepEqual(output, f.getExpectedOutput(output))
20-
const cachedData = JSON.parse(readFileSync(cachedFiles[0], 'utf8'))
21-
Fixture.removeFileSpecificData(cachedData)
22-
a.deepEqual(
23-
cachedData,
24-
f.getExpectedOutput(output)
25-
)
18+
console.log('======AFTER')
19+
console.log(output)
20+
// const cachedFiles = readdirSync(jsdoc.cache.dir).map(file => path.resolve(jsdoc.cache.dir, file))
21+
// a.equal(cachedFiles.length, 1)
22+
// a.deepEqual(output, f.getExpectedOutput(output))
23+
// const cachedData = JSON.parse(readFileSync(cachedFiles[0], 'utf8'))
24+
// Fixture.removeFileSpecificData(cachedData)
25+
// a.deepEqual(
26+
// cachedData,
27+
// f.getExpectedOutput(output)
28+
// )
2629
})
2730

2831
test.set('.explain({ source, cache: true }) - Ensure correct output (#147)', async function () {

0 commit comments

Comments
 (0)