1
0
Fork 0
Commit graph

21 commits

Author SHA1 Message Date
joostdecock
2b36340cb8 chore(core): Remove unused var in tests 2024-03-16 12:19:42 +01:00
joostdecock
88cbd6a4f9 chore(core): Drop the chai-string dependency for tests
We're using chai-string as it provides the `equalIgnoreSpaces`
assertion which we use in our SVG tests.

However, that package does not seem to be maintained, and lists chai v4
as its peer dependency. We've moved on to chai v5 and this is causes
issues in one of our github workflows as dependencies cannot be
resolved.

So, I've extracted the assertion we need, and dropped the dependency.
2024-03-16 12:10:31 +01:00
joostdecock
26e282f5b7 fix: Fix tests after major chai upgrade
Note that the tests for Lumina are failing, but that's not related to
the chai upgrade, rather it seems these tests fail because of issues in
the design that we'll tackle later (it's a brand new design yet to be
released).
2024-02-04 12:14:42 +01:00
Benjamin Fan
5828e53937 fix(core): Remove Svg.body property 2024-01-24 20:18:03 -08:00
Joost De Cock
b83ab5df74 feat(core): Allow plugins to provide their own packing implementation 2023-10-15 15:12:10 +02:00
joostdecock
b263979ca0 feat(core): Load core plugins (plugin bundle) by default 2023-09-07 11:25:57 +02:00
joostdecock
2d53638779 fix(core): Update tests to snippet changes 2023-09-06 09:27:04 +02:00
Wouter van Wageningen
8887a97dd2 @eriese recommendations 2023-04-21 03:48:37 +00:00
Wouter van Wageningen
9ed72e9f45 Now with tests! 2023-04-20 18:30:40 +00:00
joostdecock
47a7a71b61 chore(core): Linting and more tests 2022-09-25 10:55:37 +02:00
joostdecock
12c5c6a3f8 wip(core): Ensure imutable design parts and options 2022-09-25 10:55:37 +02:00
Joost De Cock
bb89b6ca65 chore(core): Unit tests for v3 code 2022-09-19 23:35:52 +02:00
Joost De Cock
d5eb2946d3 chore(core): More unit tests 2022-09-19 18:04:47 +02:00
Joost De Cock
ef5e792d6b chore: Linter fixes 2022-09-14 15:02:39 +02:00
joostdecock
ac4d134075 feat(core): Pass shorthand() to draft methods 2022-09-10 19:13:43 +02:00
joostdecock
b7071bb487 wip(core): Unit tests 2022-09-10 18:45:57 +02:00
Joost De Cock
0cbffd6dc6 wip(core): Work on late-stage config resolver
This moves resolving of the config from the pattern constructor to the
init() method. The idea is that adding a part to a pattern is exactly
the same as adding a part to a design. In other words, late-stage adding
of parts would be no different as the config gets resolved after that.

This is currently broken in many different ways, but the unit tests
particular to this new way of resolving the config do pass.
2022-09-09 20:20:38 +02:00
Joost De Cock
c09ae4aa69 wip(core): Migrated to named exports only 2022-08-28 02:14:39 +02:00
Joost De Cock
ba7c663941 wip(core): Work on porting unit tests to v3 2022-08-27 09:27:07 +02:00
joostdecock
647dded023 chore: Fix linter warnings 2022-08-25 12:53:07 +02:00
joostdecock
547d11569d chore(core): Port tests to ESM 2022-08-25 11:47:54 +02:00
Renamed from packages/core/tests/svg.test.js (Browse further)