Skip to content

Commit

Permalink
test: update tests to use source instead of compiled lib
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jul 1, 2024
1 parent 365f92b commit e3fbd73
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export { useTick } from './hooks/useTick.js';
// If you or someone you know has been hurt by Typescript, or knows how to fix
// this, you may be entitled to benefits. Please call 'tel:555-555-5555' in your
// browser devtools.
export * from './global.js';
export * from './global.ts';
2 changes: 1 addition & 1 deletion test/unit/core/createRoot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
expect,
it,
} from 'vitest';
import { createRoot } from '../../../lib/core/createRoot.js';
import { createRoot } from '../../../src/core/createRoot.js';

describe('createRoot', () =>
{
Expand Down
2 changes: 1 addition & 1 deletion test/unit/helpers/afterActiveInstanceBlur.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
expect,
it,
} from 'vitest';
import { afterActiveInstanceBlur } from '../../../lib/helpers/afterActiveInstanceBlur.js';
import { afterActiveInstanceBlur } from '../../../src/helpers/afterActiveInstanceBlur.js';

describe('afterActiveInstanceBlur', () =>
{
Expand Down
4 changes: 2 additions & 2 deletions test/unit/helpers/appendChild.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
expect,
it,
} from 'vitest';
import { appendChild } from '../../../lib/helpers/appendChild.js';
import { appendChild } from '../../../src/helpers/appendChild.js';
import { prepareInstance } from '../../../src/helpers/prepareInstance.js';

describe('appendChild', () =>
Expand Down Expand Up @@ -32,7 +32,7 @@ describe('appendChild', () =>

expect(parentInstance.children).to.be.empty;

const result = appendChild(parentInstance);
const result = appendChild(parentInstance, null);

expect(parentInstance.children).to.be.empty;
expect(result).to.be.undefined;
Expand Down
3 changes: 1 addition & 2 deletions test/unit/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
expect,
it,
} from 'vitest';
import * as PixiReact from '../../lib/index.js';
import * as PixiReact from '../../src/index.js';

describe('exports', () =>
{
Expand Down Expand Up @@ -47,7 +47,6 @@ describe('exports', () =>
expect(PixiReact).to.have.all.keys(
'Application',
'createRoot',
'default',
'extend',
'useApp',
'useAsset',
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"allowJs": true,
"allowImportingTsExtensions": true,
"allowSyntheticDefaultImports": true,
"baseUrl": "./src",
"checkJs": true,
Expand Down

0 comments on commit e3fbd73

Please sign in to comment.