-
-
Notifications
You must be signed in to change notification settings - Fork 24
Jest testing #309
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
Merged
jcs090218
merged 70 commits into
emacs-eask:master
from
joshbax189:feat/js-test-framework
Mar 29, 2025
Merged
Jest testing #309
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
6b90753
Add jest package
joshbax189 274ee3c
Port analyze tests
joshbax189 1f9902f
Add testUnsafe helper and config.test.js
joshbax189 d63f6b4
Add mini.pkg.1 to test-js/
joshbax189 405a983
Add exec.test.js
joshbax189 1a1c302
Add emacsVersion helper
joshbax189 7310c97
NPM script to reset test environments
joshbax189 ed38d21
Add TestContext class and simplify exec.test.js
joshbax189 a672755
Add options.test.js
joshbax189 613a145
Add buttercup.test.js
joshbax189 a6e54b3
Add outdated.test.js
joshbax189 7cf92e1
Add emacs.test.js
joshbax189 9822b1e
Add search.test.js
joshbax189 a97b28b
Add link.test.js
joshbax189 81ac7c8
Log cmd output when DEBUG is set
joshbax189 54e3a9c
Fix config.test.js
joshbax189 5f89df7
Add test-ecukes.test.js
joshbax189 1e80a68
Add test-ert.test.js
joshbax189 453692e
Add test-ert-runner.test.js
joshbax189 cfda301
Add exit-status tests
joshbax189 86c8245
Add local.test.js
joshbax189 dcaa903
Add docker.test.js
joshbax189 f453276
Add install.test.js
joshbax189 ee96a39
Add global.test.js
joshbax189 ca22326
Tidy up log formatting
joshbax189 ec5b154
config.test.js should create ~/.emacs.d/init.el
joshbax189 d9bcc44
global.test.js should create ~/Eask
joshbax189 2646e77
Update analyze.test.js with TestContext
joshbax189 c8621ac
Add default timeout and message when cmd is killed
joshbax189 8b1cf4b
Remove local timeouts in test files
joshbax189 19fec0b
Add some doco to helpers.js
joshbax189 c751ce3
fix: add some comments
joshbax189 d87f629
Sketch of doco page
joshbax189 e9911f1
Example of exit code matching
joshbax189 62ab996
Add some file helpers
joshbax189 e4dbe00
Add comprehensive tests to link.test.js
joshbax189 90f573e
Move upgrade-eask test to own file
joshbax189 8f8b559
Check result of commands in install.test.js
joshbax189 b8a8f62
Disable js-elpa in install.test.js to speed up test
joshbax189 6535d09
Add output transformation helper
joshbax189 b8c4979
Add examples of snapshots to analyze.test.js
joshbax189 b2f72c0
Update doco with snapshot example
joshbax189 b00e55a
Simplify options.test.js using test table
joshbax189 269a03c
Update bug descriptions in link.test.js
joshbax189 53b30e9
Sanitize windows style paths
joshbax189 e7bb0cd
fix: try using double quotes to fix windows issue in exec.test.js
joshbax189 39244bc
Teardown global env when ALLOW_UNSAFE is true
joshbax189 94c1bdf
Check for global Easkfile in info -g test
joshbax189 b9f0ad5
Add removeFiles helper method
joshbax189 c76c44c
Tidy up generated files in local.test.js
joshbax189 687c2bb
Move ./test-js to ./test/jest
joshbax189 0eab96e
Update local patch test-js => test/jest
joshbax189 670c571
Increase docker.test.js timeout
joshbax189 f804013
Tweak timeouts of local.test.js
joshbax189 01e9c2c
docs: comment on boolean env vars
joshbax189 8ff24e0
rename npm script test-docker to test-ci
joshbax189 395039c
use jest tests in workflows
joshbax189 046dfeb
Only run eask loc on emacs >= 28.1
joshbax189 bc9c240
Increase timeout in config.test.js
joshbax189 f082f12
docs: add method doco to helpers.js
joshbax189 1a093bc
In config.test.js throw if init.el exists
joshbax189 714dce4
Add workflow for upgrade-eask test
joshbax189 e31f0f5
Remove makefile targets and old script files
joshbax189 3744c67
docs: Add sections on snapshots and timeouts
joshbax189 8799ad0
docs: move Testing page onto "Developing Eask" page
joshbax189 a5e7c0d
Rename buttercup.test.js and outdated.test.js consistently
joshbax189 f5a94e5
delete unused test project
joshbax189 73debff
style: Format it
jcs090218 97b8074
docs: Add zh-TW translation
jcs090218 e76a1b8
docs: Translate comment as well
jcs090218 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,4 +73,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make command-analyze | ||
| npm run test-unsafe test/jest/analyze.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,4 +73,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make command-emacs | ||
| npm run test-unsafe test/jest/emacs.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,4 +70,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make command-exec | ||
| npm run test-unsafe test/jest/exec.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,4 +50,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make command-exit-status | ||
| npm run test-unsafe test/jest/exit-status.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,4 +73,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make command-global | ||
| npm run test-unsafe test/jest/global.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,4 +73,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make command-install | ||
| npm run test-unsafe test/jest/install.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,4 +70,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make command-link | ||
| npm run test-unsafe test/jest/link.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,4 +73,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make command-local | ||
| npm run test-unsafe test/jest/local.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,4 +52,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make test-options | ||
| npm run test-unsafe test/jest/options.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,4 +52,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make command-search | ||
| npm run test-unsafe test/jest/search.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,4 +52,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make test-buttercup | ||
| npm run test-unsafe test/jest/test-buttercup.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,4 +52,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make test-ecukes | ||
| npm run test-unsafe test/jest/test-ecukes.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,4 +52,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make test-ert-runner | ||
| npm run test-unsafe test/jest/test-ert-runner.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,4 +52,4 @@ jobs: | |
|
|
||
| - name: Testing... | ||
| run: | | ||
| make test-ert | ||
| npm run test-unsafe test/jest/test-ert.test.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: Upgrade Eask | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| paths: | ||
| - 'eask' | ||
| - '**.yml' | ||
| - lisp/** | ||
| - cmds/** | ||
| - src/** | ||
| - test/** | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| paths-ignore: | ||
| - '**/docs.yml' | ||
| - '**.md' | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| emacs-version: | ||
| - 30.1 | ||
|
|
||
| steps: | ||
| - uses: jcs090218/setup-emacs@master | ||
| with: | ||
| version: ${{ matrix.emacs-version }} | ||
|
|
||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Prepare Eask (Unix) | ||
| if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' | ||
| run: | | ||
| chmod -R 777 ./ | ||
| .github/scripts/setup-eask | ||
|
|
||
| - name: Prepare Eask (Windows) | ||
| if: matrix.os == 'windows-latest' | ||
| run: .github/scripts/setup-eask.ps1 | ||
|
|
||
| - name: Testing... | ||
| run: | | ||
| npm run test-unsafe test/jest/upgrade-eask.test.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.