Skip to content

Commit

Permalink
qa - wip
Browse files Browse the repository at this point in the history
  • Loading branch information
steveswork committed Jun 1, 2024
1 parent 2e34bd3 commit 50faa0a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 261 deletions.
38 changes: 3 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,40 +55,8 @@
"typescript": "^5.4.5"
},
"files": [
"package.json",
"index.js",
"dist/test-artifacts/suppress-render-compat.js",
"dist/test-artifacts/suppress-render-compat.d.ts",
"dist/test-artifacts/data/create-state-obj.js",
"dist/test-artifacts/data/create-state-obj.d.ts",
"dist/model/storage/index.test.js",
"dist/model/storage/index.test.d.ts",
"dist/model/storage/index.js",
"dist/model/storage/index.d.ts",
"dist/main/test-apps/with-pure-children.js",
"dist/main/test-apps/with-pure-children.d.ts",
"dist/main/test-apps/with-connected-children.js",
"dist/main/test-apps/with-connected-children.d.ts",
"dist/main/test-apps/normal.js",
"dist/main/test-apps/normal.d.ts",
"dist/main/index.test.js",
"dist/main/index.test.d.ts",
"dist/main/index.js",
"dist/main/index.d.ts",
"dist/main/hooks/use-store/index.test.js",
"dist/main/hooks/use-store/index.test.d.ts",
"dist/main/hooks/use-store/index.js",
"dist/main/hooks/use-store/index.d.ts",
"dist/main/hooks/use-render-key-provider/index.test.js",
"dist/main/hooks/use-render-key-provider/index.test.d.ts",
"dist/main/hooks/use-render-key-provider/index.js",
"dist/main/hooks/use-render-key-provider/index.d.ts",
"dist/main/hooks/use-prehooks-ref/index.js",
"dist/main/hooks/use-prehooks-ref/index.d.ts",
"dist/index.js",
"dist/index.d.ts",
"dist/constants.js",
"dist/constants.d.ts"
"dist",
"logo.png"
],
"homepage": "https://eagleeye.js.org",
"keywords": [
Expand Down Expand Up @@ -124,7 +92,7 @@
},
"scripts": {
"build": "eslint --fix && rm -rf dist && tsc && babel dist -d dist",
"postbuild": "node ./post-builder & node ./procure-logo",
"postbuild": "node ./post-build",
"test": "eslint --fix && jest --coverage --updateSnapshot",
"test:clean": "jest --clearCache",
"test:core": "jest --updateSnapshot",
Expand Down
File renamed without changes.
217 changes: 0 additions & 217 deletions post-builder.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import usePrehooksRef from '.';
describe( 'usePrehooksRef', () => {
test( 'retains prehooks prop in a `react-ref` object', () => {
const PREHOOK = 'PREHOOK_STUB'
const { result, rerender } = renderHook( usePrehooksRef, { initialProps: PREHOOK } );
const { result, rerender } = renderHook( usePrehooksRef, {
initialProps: PREHOOK as unknown
} );
expect( result.current ).toEqual({ current: PREHOOK });
const PREHOOK2 = 'PREHOOK2_STUB';
rerender( PREHOOK2 );
Expand Down
16 changes: 8 additions & 8 deletions src/main/hooks/use-render-key-provider/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ describe( 'useRenderKeyProvider', () => {
[ 'Uint8Array', new Uint8Array() ]
])( 'incompatible selectorMap type = %s', ( label, value ) => {
test( 'throws Type error', () => {
renderHook(() => {
try {
useRenderKeyProvider( value as unknown as ObjectSelector );
} catch( e ) {
expect( e.constructor.name ).toEqual( 'TypeError' );
expect( e.message ).toEqual( 'Incompatible Selector Map type provided.' );
}
});
try {
renderHook( useRenderKeyProvider, {
initialProps: value as unknown
} );
} catch( e ) {
expect( e.constructor.name ).toEqual( 'TypeError' );
expect( e.message ).toEqual( 'Incompatible Selector Map type provided.' );
}
} );
} );
} );

0 comments on commit 50faa0a

Please sign in to comment.