ember-cli-eslint
ember-cli-eslint copied to clipboard
Error: The "group" options can only be used with a "testGenerator" option of: qunit,mocha
If a the testGenerator
option is not set we should not set the group
option to true
.
Ya, good catch. I ran into this when refactoring ember-test-helpers and ember-qunit. Since those two don’t depend on ember-cli-qunit ember-cli-eslint threw errors until I manually specified the test type.
Turns out you hit this if you don't want to use the test harness (don't ask)
I seem to be hitting this error when trying to dockerize my build, despite my local build working fine. Symptom is the same, but I'm not sure i follow whether the cause is too? Using the following dockerfile:
From node:10.16.0
Add package.json .
Add package-lock.json .
RUN npm install
ADD . .
RUN node_modules/ember-cli/bin/ember build --environment development
output is:
$ docker build .
Sending build context to Docker daemon 4.787MB
Step 1/6 : FROM node:10.16.0
---> 4ae749096a47
Step 2/6 : ADD package.json .
---> 3eb50cb999da
Removing intermediate container f79e44bf3e99
Step 3/6 : ADD package-lock.json .
---> 68c9424b544a
Removing intermediate container 45f39bfd10fa
Step 4/6 : RUN npm install
---> Running in b6ffada687c3
[...]
added 1768 packages from 863 contributors and audited 130515 packages in 44.756s
found 7515 vulnerabilities (1 low, 7514 high)
run `npm audit fix` to fix them, or `npm audit` for details
---> 448223fefcb4
Removing intermediate container b6ffada687c3
Step 5/6 : ADD . .
---> 80f325de3b44
Removing intermediate container 34a60d5b8137
Step 6/6 : RUN node_modules/ember-cli/bin/ember build --environment development
---> Running in 4664887bf5fe
Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
- Building
WARNING: [ember-cli-template-lint] Test framework detection was unsuccessful. Please provide a "testGenerator" option explicitly to enable the test generators.
- Building
The "group" options can only be used with a "testGenerator" option of: qunit,mocha
Stack Trace and Error Report: /tmp/error.dump.e8b2f8f4f64c5481911c58c8e69b863d.log
The command '/bin/sh -c node_modules/ember-cli/bin/ember build --environment development' returned a non-zero code: 1
If anyone else encounters @gabrielgrant's issue, add WORKDIR /app
near the top of the Dockerfile
.