Skip to content

Commit

Permalink
ci: fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Jun 16, 2024
1 parent 0053773 commit fcd6ca0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docsify-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
node-version: [ 18, 20, latest, 'lts/*' ]
node-version: [ 18, 20, 'lts/*', latest ]
fail-fast: false

steps:
Expand Down
4 changes: 2 additions & 2 deletions e2e/commands/generate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ const docsPath = path.join(genPath, 'docs')
test.before('create temp directory', () => {
// Cleanup if the directory already exists
if (fs.existsSync(genPath)) {
fs.rmdirSync(genPath, {recursive: true})
fs.rmSync(genPath, {recursive: true})
}

fs.mkdirSync(genPath)
})

test.after('cleanup', () => {
fs.rmdirSync(genPath, {recursive: true})
fs.rmSync(genPath, {recursive: true})
})

test('generate _sidebar.md', t => {
Expand Down
4 changes: 2 additions & 2 deletions e2e/commands/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const docsPath = path.join(genPath, 'docs')
test.before('create temp directory', () => {
// Cleanup if the directory already exists
if (fs.existsSync(genPath)) {
fs.rmdirSync(genPath, {recursive: true})
fs.rmSync(genPath, {recursive: true})
}

fs.mkdirSync(genPath)
})

test.after('cleanup', () => {
fs.rmdirSync(genPath, {recursive: true})
fs.rmSync(genPath, {recursive: true})
})

test('generates docs directory', t => {
Expand Down

0 comments on commit fcd6ca0

Please sign in to comment.