Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Nov 1, 2024
1 parent 2ff8703 commit 844e39b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/caching.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ import path from 'path'
/* tests need to run with a maxConcurrency of 1 as `jsdoc.cache` is shared between tests */
const [test, only, skip] = [new Map(), new Map(), new Map()]

only.set('.explain({ files, cache: true })', async function () {
test.set('.explain({ files, cache: true })', async function () {
const f = new Fixture('class-all')
jsdoc.cache.dir = 'tmp/test/cache1'
await jsdoc.cache.clear()
let output = await jsdoc.explain({ files: f.sourcePath, cache: true })
// console.log('======BEFORE')
// console.log(output)
output = Fixture.normaliseNewLines(output)
// console.log('======AFTER')
// console.log(output)
const cachedFiles = readdirSync(jsdoc.cache.dir).map(file => path.resolve(jsdoc.cache.dir, file))
a.equal(cachedFiles.length, 1)
a.deepEqual(output, f.getExpectedOutput(output))
Expand Down

0 comments on commit 844e39b

Please sign in to comment.