Skip to content

Conversation

Vin-it
Copy link
Contributor

@Vin-it Vin-it commented Sep 17, 2024

Context

  • When NostrTypeGuard was moved from core.ts to nip19.ts in the following commit 45b25c5 the tests were left behind in core.test.ts
  • The test in core.test.ts was still trying to import NostrTypeGuard from core.ts and threw this error when running tests
Screenshot 2024-09-17 at 20 41 07

Changes

  • Moved the tests to nip19.test.ts
  • Grouped them inside a describe block for NostrTypeGuard

NostrTypeGuard was moved to nip19.ts in commit 45b25c5
but tests stayed in core.test.ts and started failing because it still imported
NostrTypeGuard from core.ts - which wasn't there.
this way we don't need to repeat NostrTypeGuard in each tests description
@AsaiToshiya
Copy link
Collaborator

I think we can merge this.

@fiatjaf fiatjaf merged commit e398617 into nbd-wtf:master Oct 11, 2024
2 checks passed
@Vin-it Vin-it deleted the fix/failing-tests branch October 12, 2024 16:15
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.

3 participants