I'm trying to get CircleCI to run tests that are failing linting, however it fails on something particular to the way Meteor works, by running on both the server and the client. Some code should only run when on the server or the client. Lint fails when you try to do an import inside of any other block:
...
import { Meteor } from 'meteor/meteor';
import { _ } from 'meteor/underscore';
import { DDP } from 'meteor/ddp-client';
if (Meteor.isServer) {
import './server/publications.coffee';
...
with the following error:
/home/ubuntu/todos/imports/api/lists/lists.tests.js
16:3 error Parsing error: 'import' and 'export' may only appear at the top level
Obviously this isn't in line with Meteor's way of doing this, since this is in the meteor/todo app, and works just fine.
How do you bypass the CircleCI linting check, or change this to a warn item?
Aucun commentaire:
Enregistrer un commentaire