Loading tests from pods

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
testing, tooling

Research direction

Start by reproducing the issue with tests under /app/modules/module1/tests and /app/modules/module2/tests, then inspect how Ember test helpers such as visit, click, and find are loaded and linted. Done means pod-specific tests load successfully and linting recognizes the helpers without undefined-function errors.

Written by the indexing model from the issue text.

Description

I'd like to keep pod specific tests within pods. Eg /app/modules/module1/tests /app/modules/module2/tests

There is a problem with the ember test helpers eg. visit, click, find etc..
They're working well but linting fails reporting the functions are not defined.

I've tried adding .jshintrc to the pod eg. /app/modules/module1/tests/.jshintrc
I've tried importing the test helpers into tests manually eg. import { find, click, etc.. } from 'ember/different-places'
None of these works.

Am I missing something or is it completely not supported?

Dominant language
JavaScript
Stars
10
Forks
20
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ember-cli/ember-cli-test-loader

All issues in ember-cli/ember-cli-test-loader

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.