Skip to content

Add local JavaScript test runner #7838

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
merged 14 commits into from
May 22, 2025
Merged

Add local JavaScript test runner #7838

merged 14 commits into from
May 22, 2025

Conversation

iHiD
Copy link
Member

@iHiD iHiD commented May 14, 2025

No description provided.

@dem4ron dem4ron self-requested a review as a code owner May 15, 2025 05:31
Submission::TestRun::Init.(submission)
def handle_test_run!
if test_results_json
Submission::TestRun::Process.(FauxToolingJob.new(submission, test_results_json))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Submission::TestRun::Process.(FauxToolingJob.new(submission, test_results_json))
Submission::TestRun::Process.defer(FauxToolingJob.new(submission, test_results_json))

@iHiD iHiD changed the title Add test_results_json option to submission create Add local JavaScript test runner May 20, 2025
def init_test_run!
Submission::TestRun::Init.(submission)
def handle_test_run!
if test_results_json
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if test_results_json
if test_results_json.present?

@iHiD iHiD merged commit afc4a94 into main May 22, 2025
40 checks passed
@iHiD iHiD deleted the submission-test-results branch May 22, 2025 13:51
iHiD added a commit that referenced this pull request May 23, 2025
* Add local JavaScript test runner (#7838)

* Add test_results_json option to submission create

* Insert stub test-result json into create testrun link

* Fix things up

* Add ClientSide test runner proto

* Make work

* Add local setup files

* Wire in `@exercism/javascript-browser-test-runner`

* Update app/commands/solution/generate_test_run_config.rb

* Refactor slightly

* Refactor plugin, organise files better

* Update jest transformIgnorePatterns

* Make runTestsClientSide more robust

* Make submission/create_test green

* Fix create_test

---------

Co-authored-by: dem4ron <demaaron88@gmail.com>

* Fix submitting status as 'grace' (#7864)

* Add shims to esbuild

* Lazy import runTestsClientSide

* Remove esbuild shizzle

---------

Co-authored-by: Jeremy Walker <jez.walker@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants