Skip to content

Comments

feat: add e2e tests for cyclic deps#45

Merged
avallete merged 3 commits intomainfrom
feat/add-e2e-for-cyclic-tables
Mar 19, 2024
Merged

feat: add e2e tests for cyclic deps#45
avallete merged 3 commits intomainfrom
feat/add-e2e-for-cyclic-tables

Conversation

@avallete
Copy link
Contributor

@avallete avallete commented Mar 19, 2024

Before working more on #21 I've migrated the store.tests.ts there into e2e testings.

I think it's a better option to ensure we won't tests "impossibles" states in our store.

await seed.orders([{
quantity: 10,
productsByFirstOrderId: {
firstOrderId: (ctx) => ctx.$store.orders[0].id!,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remark

I left this one in a .todo test, weirdly enough I would expect this to work as it passes the type check. But this fail because in firstOrderId we don't have a literal.

So either we need to change the types, or we need to fix this bug.

@avallete avallete requested review from jgoux and justinvdm March 19, 2024 10:13
@avallete avallete merged commit 19a2267 into main Mar 19, 2024
@avallete avallete deleted the feat/add-e2e-for-cyclic-tables branch March 19, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants