Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: run store TS tests from root #3260

Merged
merged 10 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ node_modules
package-lock.json
yarn.lock

*.log

.eslintcache
.parcel-cache
.docs
lerna-debug.log
yarn-error.log
.turbo
.attest
.tstrace
Expand Down
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "turbo run build",
"changelog:generate": "tsx scripts/changelog.ts",
"clean": "turbo run clean",
"dev": "TSUP_SKIP_DTS=true turbo run dev --concurrency 100",
"dev": "TSUP_SKIP_DTS=true turbo run dev --concurrency 100 --filter !@latticexyz/explorer",
"dist-tag-rm": "pnpm recursive exec -- sh -c 'npm dist-tag rm $(cat package.json | jq -r \".name\") $TAG || true'",
"docs:generate:api": "tsx scripts/render-api-docs.ts",
"fix:package-json": "sort-package-json package.json 'packages/*/package.json' 'templates/*/package.json' 'templates/*/packages/*/package.json' 'examples/*/package.json' 'examples/*/packages/*/package.json' 'e2e/*/package.json' 'e2e/*/packages/*/package.json' 'docs/package.json' 'test/*/package.json'",
Expand All @@ -25,8 +25,9 @@
"release:check": "changeset status --verbose --since=origin/main",
"release:publish": "pnpm install && pnpm build && changeset publish",
"release:version": "changeset version && pnpm install --lockfile-only && pnpm run changelog:generate",
"test": "pnpm run --recursive test",
"test:ci": "pnpm run --recursive --parallel test:ci",
"test": "pnpm run test:setup && pnpm run --recursive test",
"test:ci": "pnpm run test:setup && pnpm run --recursive test:ci",
"test:setup": "tsx test-setup/startAnvil.ts & pnpm run --filter mock-game-contracts build",
"type-bench": "pnpm --filter ./test/ts-benchmarks bench",
"type-stats-repo": "attest stats packages/*",
"vercel:prepare": "(forge --version || pnpm foundryup) && ln -sf /vercel/.foundry/bin/* node_modules/.bin/ && forge --version"
Expand All @@ -42,9 +43,10 @@
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"@viem/anvil": "^0.0.7",
"chalk": "^5.2.0",
"eslint": "8.57.0",
"execa": "^7.0.0",
"execa": "^9.4.0",
"glob": "^10.4.2",
"husky": ">=6",
"lint-staged": "^15.2.10",
Expand All @@ -54,7 +56,9 @@
"sort-package-json": "^2.10.1",
"tsx": "4.16.2",
"turbo": "^1.9.3",
"typescript": "5.4.2"
"typescript": "5.4.2",
"viem": "catalog:",
"vitest": "2.1.2"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
1 change: 1 addition & 0 deletions packages/config/src/exports/internal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Nothing here yet.
1 change: 1 addition & 0 deletions packages/create-mud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"devDependencies": {
"@types/node": "^18.15.11",
"execa": "^7.0.0",
"tsup": "^6.7.0"
},
"publishConfig": {
Expand Down
7 changes: 3 additions & 4 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,18 @@
"@latticexyz/schema-type": "workspace:*",
"abitype": "catalog:",
"arktype": "catalog:",
"debug": "^4.3.4",
"viem": "catalog:"
},
"devDependencies": {
"@latticexyz/abi-ts": "workspace:*",
"@latticexyz/gas-report": "workspace:*",
"@types/debug": "^4.1.7",
"@types/ejs": "^3.1.1",
"@types/mocha": "^9.1.1",
"@types/node": "^18.15.11",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"solhint": "^3.3.7",
"tsup": "^6.7.0",
"tsx": "^3.12.6",
"vitest": "0.34.6"
"tsup": "^6.7.0"
}
}
4 changes: 3 additions & 1 deletion packages/store/ts/protocolVersions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import { protocolVersions } from "./protocolVersions";

const [, currentVersion] = fs.readFileSync(`${__dirname}/../src/version.sol`, "utf8").match(/VERSION = "(.*?)"/) ?? [];

const currentAbi = formatAbi(StoreAbi).sort((a, b) => a.localeCompare(b));
const currentAbi = formatAbi(StoreAbi)
.slice()
.sort((a, b) => a.localeCompare(b));

describe("Store protocol version", () => {
it("is up to date", async () => {
Expand Down
7 changes: 0 additions & 7 deletions packages/store/vitest.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/world-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"@latticexyz/cli": "workspace:*",
"@latticexyz/gas-report": "workspace:*",
"@types/ejs": "^3.1.1",
"@types/mocha": "^9.1.1",
"@types/node": "^18.15.11",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
Expand Down
1 change: 0 additions & 1 deletion packages/world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"@latticexyz/gas-report": "workspace:*",
"@types/debug": "^4.1.7",
"@types/ejs": "^3.1.1",
"@types/mocha": "^9.1.1",
"@types/node": "^18.15.11",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"ejs": "^3.1.10",
Expand Down
Loading
Loading