{"id":19645922,"url":"https://github.com/austinadodo/react_component_tests","last_synced_at":"2025-02-26T23:48:11.229Z","repository":{"id":208512130,"uuid":"721580956","full_name":"AustinAdodo/react_component_tests","owner":"AustinAdodo","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-05T15:05:17.000Z","size":569,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T21:29:01.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/AustinAdodo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-21T11:02:28.000Z","updated_at":"2023-11-21T20:39:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"07787e31-6565-4ce8-9454-e95a220ec8c7","html_url":"https://github.com/AustinAdodo/react_component_tests","commit_stats":null,"previous_names":["austinadodo/react_component_tests"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinAdodo%2Freact_component_tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinAdodo%2Freact_component_tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinAdodo%2Freact_component_tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinAdodo%2Freact_component_tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AustinAdodo","download_url":"https://codeload.github.com/AustinAdodo/react_component_tests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240953062,"owners_count":19884022,"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":[],"created_at":"2024-11-11T14:35:54.970Z","updated_at":"2025-02-26T23:48:11.208Z","avatar_url":"https://github.com/AustinAdodo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Execution Environment\nTwo separate environments exist for this challenge. The test environment, which is remotely executed within a NodeJS runtime, and the web preview environment, which is bundled using Webpack. The package.json does not control both environments.\n\n# Test Environment\nThe code for this project is tested using Node 18, with Jest as the test framework. JSX is supported, as well as ES6 style imports. The code is executed in a remote environment, not within your browser. Any console.log statements executed while running tests will not send logs to your browser, but the output will be shown at the bottom of your tests. Jest does not support inline console.log statements. This is why logs come after all test output.\n\nAny package that is already loaded into the runner environment is able to be used; there is no package.json file that manages what is executed within tests. \n\nStylesheets and other assets can be imported. See jest.config.js and the __mocks__ directory to see what is loaded in their place. By default, these imports have no impact on tests, only the web preview environment.\n\nWeb Preview Environment\nThe web preview environment uses Sandpack to bundle assets. The package.json file is used to determine what gets loaded into this environment. There are no special config files; everything is inferred from package.json.\n\nCustomization is possible, but be careful not to use different versions within the web preview environment than what is loaded within the test environment. In some cases you can load additional dependencies if it is only cosmetic (styling) or meant for building preview assets, but those dependencies may not be available within the runner environment and can cause issues with your tests.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinadodo%2Freact_component_tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustinadodo%2Freact_component_tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinadodo%2Freact_component_tests/lists"}