Skip to content

Commit

Permalink
chore: prepare release 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJeevesh committed Apr 9, 2024
1 parent a6b5b2d commit 10b50bf
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 19 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[test]
preload = './setup-tests.ts'
10 changes: 0 additions & 10 deletions jest.config.ts

This file was deleted.

9 changes: 5 additions & 4 deletions lib/components/Button/Button.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { render } from '@testing-library/react';
import { describe, test } from 'vitest';
import { render, screen } from '@testing-library/react';
import { describe, test, expect } from 'bun:test';
import Button from './Button';

describe('Fulidity Button', () => {
describe('Fluidity Button', () => {
test('renders correctly', () => {
render(<Button />);
render(<Button>Fluidity</Button>);
expect(screen.getByText(/Fluidity/)).toBeDefined();
});
});
2 changes: 1 addition & 1 deletion lib/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { getBEM } from '../../utils/bem.util';
import { getBEM } from '../../utils';
import './Button.scss';

type IconType = React.ReactElement<React.HTMLProps<HTMLOrSVGElement>>;
Expand Down
1 change: 1 addition & 0 deletions lib/utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './bem.util';
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"test": "vitest",
"check": "biome check ./lib --apply",
"sb": "storybook dev -p 6006",
"prepublishOnly": "bun run lib",
"prepublishOnly": "bun run build",
"build": "tsc --p ./tsconfig.lib.json && vite build",
"build-docs": "storybook build -o docs"
},
Expand Down Expand Up @@ -60,16 +60,19 @@
"@storybook/react": "^8.0.5",
"@storybook/react-vite": "^8.0.5",
"@storybook/test": "^8.0.5",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.0.0",
"@types/bun": "^1.0.12",
"@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24",
"@vitejs/plugin-react": "^4.2.1",
"react-test-renderer": "^18.2.0",
"sass": "^1.74.1",
"storybook": "^8.0.5",
"typescript": "^5.2.2",
"vite": "^5.2.0",
"vite-plugin-dts": "^3.8.1",
"vite-plugin-lib-inject-css": "^2.0.1",
"vitest": "^1.4.0"
"vite-plugin-lib-inject-css": "^2.0.1"
},
"trustedDependencies": [
"@biomejs/biome"
Expand Down
6 changes: 6 additions & 0 deletions setup-tests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { GlobalRegistrator } from '@happy-dom/global-registrator';
import * as matchers from '@testing-library/jest-dom/matchers';
import { expect } from "bun:test";

GlobalRegistrator.register();
expect.extend(matchers);
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["bun-types"],

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src", "lib"],
"include": ["lib"],
"references": [{ "path": "./tsconfig.node.json" }]
}

0 comments on commit 10b50bf

Please sign in to comment.