{"id":15512712,"url":"https://github.com/fernandes/stimulus_testing","last_synced_at":"2026-03-10T11:03:28.503Z","repository":{"id":39308138,"uuid":"224018496","full_name":"fernandes/stimulus_testing","owner":"fernandes","description":"Rails example using webpacker and stimulus (using jest / react testing library) for tests","archived":false,"fork":false,"pushed_at":"2023-01-19T16:07:32.000Z","size":1511,"stargazers_count":4,"open_issues_count":35,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T00:33:51.708Z","etag":null,"topics":["jest","rails","stimulus","testing-library","webpack","webpacker"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fernandes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-25T18:49:30.000Z","updated_at":"2021-03-30T20:28:49.000Z","dependencies_parsed_at":"2023-02-11T08:45:47.589Z","dependency_job_id":null,"html_url":"https://github.com/fernandes/stimulus_testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandes%2Fstimulus_testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandes%2Fstimulus_testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandes%2Fstimulus_testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandes%2Fstimulus_testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fernandes","download_url":"https://codeload.github.com/fernandes/stimulus_testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688542,"owners_count":21145763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jest","rails","stimulus","testing-library","webpack","webpacker"],"created_at":"2024-10-02T09:53:48.227Z","updated_at":"2026-03-10T11:03:28.468Z","avatar_url":"https://github.com/fernandes.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Stimulus Testing\n\n[![Build Status](https://travis-ci.com/fernandes/stimulus_testing.svg?branch=master)](https://travis-ci.com/fernandes/stimulus_testing)\n\nThis repo is a PoC that implements:\n\n- A super simple stimulus [controller](https://github.com/fernandes/stimulus_testing/blob/master/app/javascript/controllers/counter_controller.js) that increases/decreases a counter\n- A [test](https://github.com/fernandes/stimulus_testing/blob/master/app/javascript/controllers/__tests__/counter_controller_test.js) for the counter controller\n- A [setupTests](https://github.com/fernandes/stimulus_testing/blob/master/app/javascript/setupTests.js) file to configure Jest and specially configure the `MutationObserver` shim\n- Configure Jest on the [package.json](https://github.com/fernandes/stimulus_testing/blob/93f8c06a03055a70875e50b565aac5e8248a1873/package.json#L22-L33) to use setup file and configure folders correctly\n- Also has a different [test file](https://github.com/fernandes/stimulus_testing/blob/93f8c06a03055a70875e50b565aac5e8248a1873/app/javascript/controllers/__tests__/counter_controller_testing_library_test.js) using [testing-library](https://testing-library.com) with [jest-dom](https://testing-library.com/docs/ecosystem-jest-dom) assertions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandes%2Fstimulus_testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffernandes%2Fstimulus_testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandes%2Fstimulus_testing/lists"}