{"id":19728525,"url":"https://github.com/thinkhr-code/mammoth-test-helpers","last_synced_at":"2026-05-15T01:36:10.438Z","repository":{"id":38273401,"uuid":"83706673","full_name":"thinkhr-code/mammoth-test-helpers","owner":"thinkhr-code","description":"Ember test helpers","archived":false,"fork":false,"pushed_at":"2022-12-10T17:15:42.000Z","size":3025,"stargazers_count":0,"open_issues_count":21,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-02-14T08:42:37.793Z","etag":null,"topics":["addon","ember","ember-cli-addon","emberjs","mammothhr","qunit"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkhr-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-02T17:37:19.000Z","updated_at":"2020-07-30T12:40:14.000Z","dependencies_parsed_at":"2023-01-26T06:46:22.865Z","dependency_job_id":null,"html_url":"https://github.com/thinkhr-code/mammoth-test-helpers","commit_stats":null,"previous_names":["mammothhr/mammoth-test-helpers"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/thinkhr-code/mammoth-test-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkhr-code%2Fmammoth-test-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkhr-code%2Fmammoth-test-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkhr-code%2Fmammoth-test-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkhr-code%2Fmammoth-test-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkhr-code","download_url":"https://codeload.github.com/thinkhr-code/mammoth-test-helpers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkhr-code%2Fmammoth-test-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33050343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["addon","ember","ember-cli-addon","emberjs","mammothhr","qunit"],"created_at":"2024-11-12T00:01:45.544Z","updated_at":"2026-05-15T01:36:10.417Z","avatar_url":"https://github.com/thinkhr-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/MammothHR/mammoth-test-helpers.svg?branch=master)](https://travis-ci.org/MammothHR/mammoth-test-helpers)\n\n# mammoth-test-helpers\n\nA set of QUnit extensions, stubs for common global tools, and other testing tools for testing Ember CLI applications.\n\n## Installation\n\n* `ember install mammoth-test-helpers`\n\n## Use\n\nThe primary way to use this is to add some code to your `tests/test-helper.js`.  You include the primary `prepTests` helper, and can programatically add additional helpers to load.\n\nFor example:\n```\nimport resolver                  from './helpers/resolver';\nimport prepTests, { addToQueue } from 'mammoth-test-helpers/test-support/prep-tests';\nimport linkTo                    from 'mammoth-test-helpers/test-support/helpers/link-to-helper';\nimport googleChart               from 'mammoth-test-helpers/test-support/stubs/google-chart';\nimport stripe                    from 'mammoth-test-helpers/test-support/stubs/stripe';\nimport wysihtml5                 from 'mammoth-test-helpers/test-support/stubs/wysihtml5';\nimport { setResolver }           from '@ember/test-helpers';\n\nsetResolver(resolver);\n\n// Add some non-default helpers\naddToQueue(linkTo);\naddToQueue(googleChart);\naddToQueue(stripe);\naddToQueue(wysihtml5);\n\n// Load queued helpers\nprepTests();\n```\n\n(This example loads everything!)\n\n\n\n## Modules\n\nSeveral modules are includes:\n\n|Path|Default?|Description|Source|\n|---|---|---|---|\n|`mammoth-test-helpers/test-support/helpers/assert-helpers`| Yes | Adds numerous helpers to QUnit's `assert`. |[source](addon-test-support/helpers/assert-helpers.js)|\n|`mammoth-test-helpers/test-support/helpers/link-to-helper`|   | Adds data attributes to `link-to` helpers that track the passed in models / path. |[source](addon-test-support/helpers/link-to-helper.js)|\n|`mammoth-test-helpers/test-support/helpers/ajax`|   | A couple of simple helpers for simplifying ajax requests (e.g. using Pretender.js). |[source](addon-test-support/helpers/ajax-helpers.js)|\n|`mammoth-test-helpers/test-support/helpers/jquery-actions`|   | Wrappers around ember-test-helper tools so that you can pass jQuery selectors |[source](addon-test-support/helpers/jquery-actions.js)|\n|`mammoth-test-helpers/test-support/helpers/select-a-select`|   | A simple helper for firing a change action on a select. |[source](addon-test-support/helpers/select-a-select.js)|\n|`mammoth-test-helpers/test-support/shims/console`|   | Shim for `window.console.log` if it doesn't exist (thanks IE!). |[source](addon-test-support/shims/console.js)|\n|`mammoth-test-helpers/test-support/stubs/google-chart`|   | Stub out common methods related to google charts. |[source](addon-test-support/stubs/google-chart.js)|\n|`mammoth-test-helpers/test-support/stubs/stripe`|   | Stub out some common behavior for Stripe. |[source](addon-test-support/stubs/stripe.js)|\n|`mammoth-test-helpers/test-support/stubs/ember-tooltips`|   | Stub out components from ember-tooltips for unit tests. |[source](addon-test-support/stubs/ember-tooltips.js)|\n|`mammoth-test-helpers/test-support/stubs/wysihtml5`|   | Stub out globals for WysiHTML5. |[source](addon-test-support/stubs/wysihtml5.js)|\n|`mammoth-test-helpers/test-support/temporary-stubs/rsvp`|   | Returns `stubRSVP` and `unstubRSVP` for situations where you don't want RSVP to throw an error (e.g. if you are testing failed requests). |[source](addon-test-support/stubs/rsvp.js)|\n|`mammoth-test-helpers/test-support/temporary-stubs/window-actions`|   | Includes several methods for stubbing / unstubbing common blocking window actions (e.g. `alert` and `confirm`.)  Stubs accept functions for testing parameters. |[source](addon-test-support/stubs/window-actions.js)|\n\n## Test Reporter\n\nIncluded is a custom test reporter for Testem that results in simple output (dots) with failure summaries at the end.  This is ideal in a CI environment.\n\nTo use, add this to your testem.js file:\n\n```\nconst Reporter = require('./node_modules/mammoth-test-helpers/test-reporter');\n\nmodule.exports = {\n  reporter: Reporter,\n...\n```\n\n\n## Running Tests\n\n* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkhr-code%2Fmammoth-test-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkhr-code%2Fmammoth-test-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkhr-code%2Fmammoth-test-helpers/lists"}