Updated .gitignore and Dockerfile for improved build process.

- 🛠️ **Refactor**: Changed npm install command in Dockerfile for better script handling
- 🗑️ **Chore**: Removed junit.xml from repository
- 🎨 **Style**: Added junit.xml to .gitignore for cleaner project structure
- 🎨 **Style**: Ensured newline at end of file in .gitignore
This commit is contained in:
Lorenz Hilpert
2025-04-25 12:06:15 +02:00
parent c0e8e69f9f
commit 337ef46acb
3 changed files with 3 additions and 87 deletions

3
.gitignore vendored
View File

@@ -1,6 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
.matomo
junit.xml
# compiled output
/dist
@@ -60,4 +61,4 @@ libs/swagger/src/lib/*
.angular
storybook-static
storybook-static

View File

@@ -8,7 +8,7 @@ WORKDIR /app
COPY . .
RUN umask 0022
RUN npm version ${SEMVERSION}
RUN npm install --always-auth=false
RUN npm install --foreground-scripts
RUN if [ "${IS_PRODUCTION}" = "true" ] ; then npm run-script build-prod ; else npm run-script build ; fi
# stage final

View File

@@ -1,85 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="38" failures="0" errors="0" time="4.387">
<testsuite name="ReturnProcessQuestions Validators" errors="0" failures="0" skipped="0" timestamp="2025-04-01T19:08:49" time="2.024" tests="22">
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is ovp and return reason is dislike" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is ovp and return reason is dislike" time="0.006">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item is provided" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item is provided" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Pending when item is ovp, return reason is wrong_item but delivered item is missing" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Pending when item is ovp, return reason is wrong_item but delivered item is missing" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is damaged" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is damaged" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return NotEligible for any invalid answers" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return NotEligible for any invalid answers" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return Eligible when item is ovp" name="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return Eligible when item is ovp" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return Eligible when damaged and item is defective" name="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return Eligible when damaged and item is defective" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return NotEligible when damaged and item is not defective" name="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return NotEligible when damaged and item is not defective" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return NotEligible with invalid answers if keys are missing" name="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return NotEligible with invalid answers if keys are missing" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is ovp and return reason is dislike" name="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is ovp and return reason is dislike" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item is provided" name="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item is provided" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return Pending when delivered item is missing for wrong_item reason" name="ReturnProcessQuestions Validators validateNonbookQuestions should return Pending when delivered item is missing for wrong_item reason" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is damaged" name="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is damaged" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return NotEligible for invalid answers" name="ReturnProcessQuestions Validators validateNonbookQuestions should return NotEligible for invalid answers" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when item is ovp and return reason is dislike" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when item is ovp and return reason is dislike" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item provided" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item provided" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Pending when delivered item is missing for wrong_item reason" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Pending when delivered item is missing for wrong_item reason" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when damaged and item is defective" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when damaged and item is defective" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return NotEligible when damaged and item is not defective" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return NotEligible when damaged and item is not defective" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return NotEligible for invalid answers" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return NotEligible for invalid answers" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators CategoryQuestions and Validators mapping should map each category to its questions" name="ReturnProcessQuestions Validators CategoryQuestions and Validators mapping should map each category to its questions" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators CategoryQuestions and Validators mapping should map each category to its validator" name="ReturnProcessQuestions Validators CategoryQuestions and Validators mapping should map each category to its validator" time="0">
</testcase>
</testsuite>
<testsuite name="ReturnDetailsStore" errors="0" failures="0" skipped="0" timestamp="2025-04-01T19:08:49" time="2.62" tests="7">
<testcase classname="ReturnDetailsStore Initialization should create an instance of ReturnDetailsStore" name="ReturnDetailsStore Initialization should create an instance of ReturnDetailsStore" time="0.016">
</testcase>
<testcase classname="ReturnDetailsStore Entity Management beforeFetch should create a new entity and set status to Pending if it does not exist" name="ReturnDetailsStore Entity Management beforeFetch should create a new entity and set status to Pending if it does not exist" time="0.004">
</testcase>
<testcase classname="ReturnDetailsStore Entity Management beforeFetch should update the existing entity status to Pending" name="ReturnDetailsStore Entity Management beforeFetch should update the existing entity status to Pending" time="0.004">
</testcase>
<testcase classname="ReturnDetailsStore Entity Management fetchSuccess should update the entity with fetched data and set status to Success" name="ReturnDetailsStore Entity Management fetchSuccess should update the entity with fetched data and set status to Success" time="0.002">
</testcase>
<testcase classname="ReturnDetailsStore Entity Management fetchError should update the entity status to Error" name="ReturnDetailsStore Entity Management fetchError should update the entity status to Error" time="0.003">
</testcase>
<testcase classname="ReturnDetailsStore fetch should call the service and update the store on success" name="ReturnDetailsStore fetch should call the service and update the store on success" time="0.004">
</testcase>
<testcase classname="ReturnDetailsStore fetch should handle errors and update the store accordingly" name="ReturnDetailsStore fetch should handle errors and update the store accordingly" time="0.002">
</testcase>
</testsuite>
<testsuite name="ReturnProcessStore" errors="0" failures="0" skipped="0" timestamp="2025-04-01T19:08:49" time="2.762" tests="9">
<testcase classname="ReturnProcessStore Initialization should create an instance of ReturnProcessStore" name="ReturnProcessStore Initialization should create an instance of ReturnProcessStore" time="0.023">
</testcase>
<testcase classname="ReturnProcessStore Initialization should have a nextId computed property" name="ReturnProcessStore Initialization should have a nextId computed property" time="0.006">
</testcase>
<testcase classname="ReturnProcessStore Entity Management should remove all entities by process id" name="ReturnProcessStore Entity Management should remove all entities by process id" time="0.004">
</testcase>
<testcase classname="ReturnProcessStore Entity Management should set an answer for a given entity" name="ReturnProcessStore Entity Management should set an answer for a given entity" time="0.003">
</testcase>
<testcase classname="ReturnProcessStore Entity Management should remove an answer for a given entity" name="ReturnProcessStore Entity Management should remove an answer for a given entity" time="0.002">
</testcase>
<testcase classname="ReturnProcessStore Entity Management should set a product category for a given entity" name="ReturnProcessStore Entity Management should set a product category for a given entity" time="0.002">
</testcase>
<testcase classname="ReturnProcessStore Process Management should initialize a new return process" name="ReturnProcessStore Process Management should initialize a new return process" time="0.003">
</testcase>
<testcase classname="ReturnProcessStore Process Management should throw an error if no returnable items are found" name="ReturnProcessStore Process Management should throw an error if no returnable items are found" time="0.009">
</testcase>
<testcase classname="ReturnProcessStore Process Management should throw an error if the number of returnable items does not match the total items" name="ReturnProcessStore Process Management should throw an error if the number of returnable items does not match the total items" time="0.004">
</testcase>
</testsuite>
</testsuites>