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 0bf30c1 commit 1e547e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm i -g @75lb/nature
- run: npm i -D @75lb/nature
- run: npm run test:ci

26 changes: 13 additions & 13 deletions test/caching.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ only.set('.explain({ files, cache: true })', async function () {
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)
// 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))
// const cachedData = JSON.parse(readFileSync(cachedFiles[0], 'utf8'))
// Fixture.removeFileSpecificData(cachedData)
// a.deepEqual(
// cachedData,
// f.getExpectedOutput(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))
const cachedData = JSON.parse(readFileSync(cachedFiles[0], 'utf8'))
Fixture.removeFileSpecificData(cachedData)
a.deepEqual(
cachedData,
f.getExpectedOutput(output)
)
})

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

0 comments on commit 1e547e5

Please sign in to comment.