ENV CHROME_BIN /usr/bin/chromium-browser
RUN ./ng test --browsers ChromeHeadless --code-coverage=true --watch=false
-RUN npm run-script build
+RUN npm run-script build:prod
### STAGE 2: Run App ###
FROM nginx:alpine
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json",
"start:mock": "ng serve --configuration=mock",
- "build": "ng build",
+ "build": "ng build --output-hashing all",
+ "build:prod": "ng build --configuration production --build-optimizer --vendor-chunk",
"test": "ng test --watch=true",
"lint": "ng lint",
"e2e": "ng e2e",
});
describe("#truncate data", () => {
- fit("should verify that data is correctly truncated when needed", async () => {
+ it("should verify that data is correctly truncated when needed", async () => {
policyServiceSpy.getPolicyInstancesByType.and.returnValue(
of(policyInstances)
);