Add revision tests #30

Open
xrdawson wants to merge 5 commits from add_revision_tests into main
xrdawson commented 2023-07-31 14:28:47 +00:00 (Migrated from extrastatic.dev)

Add tests to the revision code.

$ pnpm run test

> svekyll-cli@0.0.74 test /home/chrisdawson/Projects/ExtraStatic/svekyll-cli
> OVERRIDE_PACKAGE_JSON=./package.json mocha tests/*.js



  #revisions
Running inside /run/user/1000/tmp-166485-1xyh7LGQZacw
Diffs undefined
    ✔ should only retrieve diffs once they hit master (188ms)
Running inside /run/user/1000/tmp-166485-9zXWwwfG9UAo
Diff list [
  '0a5e2ee --  (HEAD -> main) -- Mon Jul 31 10:27:50 2023 -0400 -- good2',
  'ac3ed7a --  -- Mon Jul 31 10:27:50 2023 -0400 -- good',
  'c15f7ed --  (not_main) -- Mon Jul 31 10:27:50 2023 -0400 -- bad2',
  '569c700 --  -- Mon Jul 31 10:27:50 2023 -0400 -- bad'
]
    ✔ should only retrieve diffs once they hit master (176ms)


  2 passing (368ms)


Add tests to the revision code. ``` $ pnpm run test > svekyll-cli@0.0.74 test /home/chrisdawson/Projects/ExtraStatic/svekyll-cli > OVERRIDE_PACKAGE_JSON=./package.json mocha tests/*.js #revisions Running inside /run/user/1000/tmp-166485-1xyh7LGQZacw Diffs undefined ✔ should only retrieve diffs once they hit master (188ms) Running inside /run/user/1000/tmp-166485-9zXWwwfG9UAo Diff list [ '0a5e2ee -- (HEAD -> main) -- Mon Jul 31 10:27:50 2023 -0400 -- good2', 'ac3ed7a -- -- Mon Jul 31 10:27:50 2023 -0400 -- good', 'c15f7ed -- (not_main) -- Mon Jul 31 10:27:50 2023 -0400 -- bad2', '569c700 -- -- Mon Jul 31 10:27:50 2023 -0400 -- bad' ] ✔ should only retrieve diffs once they hit master (176ms) 2 passing (368ms) ```
xrdawson commented 2023-07-31 14:32:51 +00:00 (Migrated from extrastatic.dev)

added 1 commit

Compare with previous version

added 1 commit <ul><li>4b235a66 - Remove unused spawnSync</li></ul> [Compare with previous version](/svekyll/svekyll-cli/-/merge_requests/8/diffs?diff_id=3098&start_sha=ae55f6251395825ea2c4552cd309df136c6e8ab2)
This pull request has changes conflicting with the target branch.
  • svekyll/cli.js
  • yarn.lock
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin add_revision_tests:add_revision_tests
git switch add_revision_tests

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff add_revision_tests
git switch add_revision_tests
git rebase main
git switch main
git merge --ff-only add_revision_tests
git switch add_revision_tests
git rebase main
git switch main
git merge --no-ff add_revision_tests
git switch main
git merge --squash add_revision_tests
git switch main
git merge --ff-only add_revision_tests
git switch main
git merge add_revision_tests
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
svekyll/svekyll-cli!30
No description provided.