Skip to content

Commit

Permalink
feat(core): configure scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourny committed Sep 29, 2024
1 parent 1980bda commit b716bff
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
12 changes: 12 additions & 0 deletions apps/uikit/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "uikit",
"version": "1.0.0",
"main": "eslint.config.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
13 changes: 4 additions & 9 deletions apps/uikit/src/app/app.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@ import { render } from '@testing-library/react';
import App from './app';

describe('App', () => {
it('should render successfully', () => {
const { baseElement } = render(<App />);
expect(baseElement).toBeTruthy();
});

it('should have a greeting as the title', () => {
const { getByText } = render(<App />);
expect(getByText(/Welcome uikit/gi)).toBeTruthy();
});
it('should render successfully', () => {
const { baseElement } = render(<App />);
expect(baseElement).toBeTruthy();
});
});
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
"name": "@react-monorepo/source",
"version": "0.0.0",
"license": "MIT",
"scripts": {},
"scripts": {
"start": "nx serve",
"build": "nx build",
"test": " jest",
"lint": "nx run-many --target lint",
"typecheck": "tsc --project tsconfig.base.json --noEmit",
"e2e": "nx e2e",
"storybook:uikit": "nx storybook uikit",
"build-storybook": "build-storybook"
},
"private": true,
"dependencies": {
"react": "18.3.1",
Expand Down

0 comments on commit b716bff

Please sign in to comment.