Skip to content

Commit

Permalink
fix: broken tests; replace yarn with pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyfigaro committed Dec 1, 2024
1 parent 4c0f11b commit 6663654
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
8 changes: 8 additions & 0 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { test, assert, describe } from 'vitest';
import { useScrollProgress } from '../src/useScrollProgress';

describe('useScrollProgress', () => {
test('is exported properly', () => {
assert.exists(useScrollProgress);
});
});
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
}
},
"scripts": {
"dev": "yarn tsup --watch",
"bundle": "yarn run build",
"build": "yarn run tsup",
"lint:fix": "yarn eslint . --fix",
"format:fix": "yarn prettier . --write",
"typecheck": "yarn tsup --dts-only",
"test": "NODE_ENV=test yarn vitest --ui --mode development",
"test:ci": "yarn vitest run --coverage",
"test:watch": "yarn vitest --watch"
"dev": "pnpm tsup --watch",
"bundle": "pnpm run build",
"build": "pnpm run tsup",
"lint:fix": "pnpm eslint . --fix",
"format:fix": "pnpm prettier . --write",
"typecheck": "pnpm tsup --dts-only",
"test": "NODE_ENV=test pnpm vitest --ui --mode development",
"test:ci": "pnpm vitest run --coverage",
"test:watch": "pnpm vitest --watch"
},
"files": [
"dist"
Expand Down
6 changes: 0 additions & 6 deletions test/index.test.ts

This file was deleted.

0 comments on commit 6663654

Please sign in to comment.