summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
6ba7038)
Start using the "--output-hashing all" option when building to avoid
cache problems in browser.
Also introduce a production build to use when building the docker image.
Issue-ID: NONRTRIC-529
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: Ic38ecb938076b1b62ee91356035b43bebc1a80cb
ENV CHROME_BIN /usr/bin/chromium-browser
RUN ./ng test --browsers ChromeHeadless --code-coverage=true --watch=false
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
### STAGE 2: Run App ###
FROM nginx:alpine
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json",
"start:mock": "ng serve --configuration=mock",
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json",
"start:mock": "ng serve --configuration=mock",
+ "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",
"test": "ng test --watch=true",
"lint": "ng lint",
"e2e": "ng e2e",
});
describe("#truncate data", () => {
});
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)
);
policyServiceSpy.getPolicyInstancesByType.and.returnValue(
of(policyInstances)
);