Edwin Amoo
Edwin Amoo

Reputation: 1

The command "docker run -e CI=true amooedwin/docker-reactv3 npm run test -- --coverage" exited with 1

I am deploying an application in AWS using Node.JS, however Travis takes my repo from github and runs it successfully but exits with 1. This is the error

I tried running docker run -e CI=true amooedwin/docker-reactv3 npm run test -- --coverage and also RUN npm run build || true in my .yaml and dockerfile, but my issue still persist

Upvotes: 0

Views: 45

Answers (1)

Looks like this is not a CI issue, this is an issue with your code. Just try adding the below line to your App.jsx/tsx and App.test.jsx/tsx files.

import React from 'react';

Upvotes: 0

Related Questions