Skip to content

Commit d2d975f

Browse files
committed
docs: add attribution comments to testing utilities
1 parent 94b6204 commit d2d975f

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

example/src/testing/State.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Chainable assertion API adapted from Nitro.
3+
* @see https://github.com/mrousavy/nitro/blob/main/example/src/testing/State.ts
4+
*/
15
import type { AssertionBackend, JSType } from './types';
26

37
function stringify(value: unknown): string {

example/src/testing/createTestRunner.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Test runner factory with timeout handling, adapted from Nitro.
3+
* @see https://github.com/mrousavy/nitro/blob/main/example/src/testing/createTestRunner.ts
4+
*/
15
import { State } from './State';
26
import type { AssertionBackend } from './types';
37

example/src/testing/throwingBackend.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Assertion backend that throws on failure, for in-app test UI.
3+
* @see https://github.com/mrousavy/nitro/blob/main/example/src/testing/backends/throwing.ts
4+
*/
15
import deepEqual from 'deep-equal';
26
import type { AssertionBackend, JSType } from './types';
37

example/src/testing/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Testing infrastructure adapted from Nitro's example app.
3+
* @see https://github.com/mrousavy/nitro/tree/main/example/src/testing
4+
*/
15
import type { RiveFile } from '@rive-app/react-native';
26

37
export type JSType =

0 commit comments

Comments
 (0)