Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: elevate warnings
Browse files Browse the repository at this point in the history
CodyJasonBennett committed Mar 28, 2024
1 parent 1dfb4f8 commit 75e1f63
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -19,4 +19,4 @@ jobs:
run: yarn build

- name: Run tests
run: yarn test
run: yarn test --silent
4 changes: 4 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@ import * as React from 'react'
import Reconciler from 'react-reconciler'
import { DefaultEventPriority, ConcurrentRoot } from 'react-reconciler/constants.js'

console.warn = console.error = (message: string) => {
throw new Error(message)
}

export interface NilNode<P = Record<string, unknown>> {
type: string
props: P

0 comments on commit 75e1f63

Please sign in to comment.