Skip to content

Commit

Permalink
fix: update the README.md script
Browse files Browse the repository at this point in the history
  • Loading branch information
nusr committed Dec 19, 2023
1 parent 12e2b4c commit c3aba20
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 430 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ npm run start
- [x] Fill color
- [x] Text wrapping
- [x] Formulas
- [x] Define Name
- [x] Insert row, column
- [x] Delete row, column
- [x] Insert Sheet
Expand All @@ -51,6 +52,7 @@ npm run start
- [x] ASIN
- [x] ASINH
- [x] ATAN
- [x] ATAN2
- [x] ATANH
- [x] CHAR
- [x] CODE
Expand All @@ -72,4 +74,3 @@ npm run start
- [x] UNICHAR
- [x] UNICODE
- [x] UPPER

4 changes: 2 additions & 2 deletions e2e/a.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let port = 8000;

beforeAll(async () => {
await setupPuppeteer();
await sleep(500);
await sleep(1000);
getPort();
});
afterAll(async () => {
Expand Down Expand Up @@ -49,7 +49,7 @@ export function sleep(milliseconds: number): Promise<unknown> {
export async function openPage(): Promise<void> {
const filePath = `http://localhost:${port}`;
await browserPage.goto(filePath);
await sleep(200);
await sleep(500);
}

export function getTestIdSelector(testId: string): string {
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
"build": "node ./scripts/esbuild.js",
"test": "jest --config ./scripts/unit-test-jest.config.js --forceExit --detectOpenHandles",
"coverage": "npm run test -- --coverage",
"ci": "npm run test && npm run e2e && npm run build && npm run type-check && npm run lint",
"ci": "npm run test && npm run e2e && npm run build && npm run type-check && npm run update-md && npm run lint",
"type-check": "npx tsc",
"postinstall": "node ./post-install.js",
"prebuild": "node ./post-install.js",
"prebuild": "npm run postinstall",
"e2e": "jest --config ./scripts/e2e-jest.config.js --forceExit --detectOpenHandles",
"lint": "npm run lint-es && npm run lint-ox",
"lint-es": "eslint --fix --quiet --ext .ts,.tsx ./",
"lint-ox": "pnpm dlx oxlint@latest"
"lint": "pnpm dlx oxlint@latest && eslint --fix --quiet --ext .ts,.tsx ./",
"update-md": "node ./scripts/update-md.js"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function init() {
entryPoints: [filePath],
outfile: temp,
format: 'cjs',
target: 'es2020',
// target: 'es2020',
});
} else if (ext === '.js') {
fs.unlink(filePath, (error) => {
Expand Down
Loading

0 comments on commit c3aba20

Please sign in to comment.