{"id":21065614,"url":"https://github.com/adaptlearning/jest-environment-adapt","last_synced_at":"2025-03-14T01:46:56.420Z","repository":{"id":173143952,"uuid":"650306281","full_name":"adaptlearning/jest-environment-adapt","owner":"adaptlearning","description":"jest environment for Adapt","archived":false,"fork":false,"pushed_at":"2023-09-20T11:19:35.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-25T17:43:58.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/adaptlearning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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-06-06T19:39:36.000Z","updated_at":"2023-09-20T11:20:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"152dc5a1-2c25-457b-8c92-6332ef7a41cc","html_url":"https://github.com/adaptlearning/jest-environment-adapt","commit_stats":null,"previous_names":["cgkineo/jest-environment-adapt"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptlearning%2Fjest-environment-adapt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptlearning%2Fjest-environment-adapt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptlearning%2Fjest-environment-adapt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptlearning%2Fjest-environment-adapt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adaptlearning","download_url":"https://codeload.github.com/adaptlearning/jest-environment-adapt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243509739,"owners_count":20302260,"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-19T17:55:48.540Z","updated_at":"2025-03-14T01:46:56.400Z","avatar_url":"https://github.com/adaptlearning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jest-environment-adapt\n\nSetup jest using jsdom. Support Adapt plugin mocking. Allow jsdom to load resources from Adapt's build output. Fix missing apis on jsdom window. Force jest to wait for Adapt to load correctly.\n\nSupports loading Adapt into a node jsdom environment for unit testing.\n\n### Config in `jest.config.json`\n```json\n{\n  \"testEnvironment\": \"jest-environment-adapt\",\n  \"testEnvironmentOptions\": {\n    \"pluginsMockFile\": \"./test/unit/__mocks__/plugins.js\"\n  }\n}\n```\n\n### Programmic config\n```js\n  const config = require('./jest.config');\n  config.testEnvironmentOptions.outputDir = \"./build/\";\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaptlearning%2Fjest-environment-adapt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadaptlearning%2Fjest-environment-adapt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaptlearning%2Fjest-environment-adapt/lists"}