FluffyLabs / FluffyLabs/typeberry-native

Add tests for both Node.js and browser environments

Open
#46 0 comments 0 reactions 1 assignee Claimed by @tomusdrw View on GitHub
Dominant language
Rust
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Summary

Currently, the lack of environment-specific tests allows build regressions to slip through — as seen in #41 (partially reverted in #45).

## Goal

Add tests (or CI jobs) that verify the package works correctly in **both** environments:

- **Node.js** — ensure the Node.js build is functional and not broken by changes.
- **Browser** — ensure the browser build is functional and not broken by changes.

## Motivation

PR #41 broke the Node.js build without being caught by existing CI. Having dedicated test runs for each target environment would catch such regressions early.

## Acceptance Criteria

- [ ] A test (or CI job) that exercises the Node.js build and fails if the build is broken.
- [ ] A test (or CI job) that exercises the browser build and fails if the build is broken.
- [ ] Both checks run on every PR.

## References

- PR introducing the regression: #41
- PR fixing the regression: #45

/cc @tomusdrw

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.