Arno Chauveau
372111147f
Moved Aged Brie logic to AgedBrieBehavior
2025-07-24 11:50:17 +02:00
Arno Chauveau
1563d86e90
Move logic that maps item names to Update behavior to a new resolver file
2025-07-24 11:49:33 +02:00
Arno Chauveau
f35d2e9c84
Introduce improved file structure, move update logic to legacyBehavior class
...
- move item to it’s own file.
- Change tsconfig to use ‘@app’ prefix for imports
- move the logic to the legacy-behavior file, allowing to refactor out
item type by item type
2025-07-24 11:49:26 +02:00
Arno Chauveau
737704e19e
Use Array.prototype.map over a for loop
...
Use Array.prototype.map over a for loop so that we don’t have to use
array indexing all the time.
2025-07-24 10:17:36 +02:00
Arno Chauveau
6445f7f797
Use strict equality operator over loose equality operator
...
Use strict equality operator over loose equality operator because it
is seen as a best practice in the js/ts community.
2025-07-24 10:17:36 +02:00
Arno Chauveau
ba40febb07
Add some comments to code that can't be changed because of requirements
2025-07-24 10:17:36 +02:00
Arno Chauveau
3872d78106
Add Todo for new functionality
2025-07-24 10:17:36 +02:00
Arno Chauveau
dcbf92c3aa
Use a modern EcmaScript version
2025-07-24 10:17:36 +02:00
Arno Chauveau
b769e4539e
write unit tests for currently implemented code
2025-07-24 09:49:27 +02:00
Arno Chauveau
40c997220d
refactor snapshot tests
...
- refactor snapshot tests to not use the console output and text test.
- Remove texttest rig python script
- generate snapshot file
2025-07-23 15:15:32 +02:00
Arno Chauveau
843a2c639b
cleanup unused test frameworks
2025-07-23 14:51:12 +02:00
Arno Chauveau
0dd072b9ac
fix failing unit test
...
fix the failing unit test for gilded-rose.spec.ts
2025-07-23 14:49:49 +02:00
Nadine
f541a98838
port typescript approval tests from jest to vitest
2025-01-09 19:54:34 -04:00
Peter Kofler
c83be7b8f4
sourceMap must be true for coverage to work with correct line numbers.
2023-11-29 12:13:35 +01:00
Peter Kofler
d9f80abd06
TS: Add an Approval base test similar to Java-Approvals and CS-xunit-verify using Jest Snapshot.
2023-11-29 12:13:35 +01:00
Peter Kofler
2a96f34022
Do not commit the lock file.
2023-11-29 12:13:35 +01:00
emily
fa5ea72fd2
Get the TypeScript TextTests working more conveniently
2023-11-03 15:26:43 +01:00
Anthony Rey
95a5db2080
Add vitest inside TypeScript
2023-02-22 11:33:47 +01:00
Salva Pérez
cc3b5708e1
Readme updated
2022-02-10 10:13:36 +01:00
Salva Pérez
fdd6f6b4cb
Fixed run app. Parametrized days simulation.
2022-02-10 10:13:30 +01:00
Anthony Rey
b0f4a15245
Add Jest to TypeScript (and update dependencies)
2021-11-09 18:41:26 +01:00
Samuel Ytterbrink
70a9e74f68
Update typescript dependencies and the mocharc file
2021-01-28 12:21:03 +01:00
archive-sebastian
84f92fe5d7
excluded none spec files from test runner
2018-12-10 13:01:57 +01:00
archive-sebastian
c9f4838a09
fixed file name typo
2018-12-10 13:01:56 +01:00
archive-sebastian
8a4aa4b684
add golden master for typescript
2018-12-10 13:01:56 +01:00
Tomas Novella
939afa9822
Fix compile error in TS
...
Without a type annotation, TS expects the argument in the ctor to be a never[], hence "npm test" fails to even start
2018-12-09 09:40:49 +01:00
Peter Kofler
b881804cda
Use newer version of TypeScript. Use proper project name in project properties.
2018-12-02 22:06:14 +01:00
Harry Dennen
34c9b0bbca
fix(js and ts): typo
...
- 'gilged' to 'gilded' in respective specs
2017-07-06 10:16:37 +02:00
Paulo Clavijo Esteban
10346b66c8
Added GildedRose for TypeScript
2017-06-30 17:32:04 +01:00