Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows portability issues, move fakeJsdoc to jsdocStub #1

Merged
merged 3 commits into from
Dec 28, 2023

Rename fakeJsdoc test fixture to jsdocStub

407c5ae
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Fix Windows portability issues, move fakeJsdoc to jsdocStub #1

Rename fakeJsdoc test fixture to jsdocStub
407c5ae
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results succeeded Dec 28, 2023 in 1s

Test Results ✅

Tests passed successfully

✅ TESTS-TestSuites.xml

24 tests were completed in 1s with 24 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/analyzeArgv.test.js 9✅ 20ms
test/findFile.test.js 3✅ 15ms
test/getPath.test.js 3✅ 6ms
test/main.test.js 4✅ 547ms
test/runJsdoc.test.js 5✅ 352ms

✅ test/analyzeArgv.test.js

✅ analyzeArgv > empty argv returns defaults
✅ analyzeArgv > destination not set if flag not followed by valid arg
✅ analyzeArgv > -d or --destination sets destination
✅ analyzeArgv > last -d wins
✅ analyzeArgv > -h, --help, -v, or --version sets willGenerate to false
✅ analyzeArgv > -c or --configure sets destination if opts defined
✅ analyzeArgv > last -c with opts defined wins
✅ analyzeArgv > -c with opts.destination undefined resets destination
✅ analyzeArgv > -d overrides -c

✅ test/findFile.test.js

✅ findFile > find file at root of tree
✅ findFile > find files using breadth-first search
✅ findFile > rejects when file not found

✅ test/getPath.test.js

✅ getPath > finds command on POSIX system
✅ getPath > finds command on Windows system
✅ getPath > rejects when command isn't found

✅ test/main.test.js

✅ jsdoc-cli-wrapper > success without index.html path
✅ jsdoc-cli-wrapper > error without index.html path
✅ jsdoc-cli-wrapper > success with index.html path
✅ jsdoc-cli-wrapper > emit internal error

✅ test/runJsdoc.test.js

✅ runJsdoc > emits error if jsdoc not found
✅ runJsdoc > returns success on -h, doesn't delete existing dir
✅ runJsdoc > deletes existing output and returns error
✅ runJsdoc > replaces existing output and returns success
✅ runJsdoc > deletes existing output and returns success