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

28 Views Asked by At

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

1

There are 1 best solutions below

1
Chathula Sampath Perera On

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';