Skip to content

Commit

Permalink
further improvements to test script
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv Soni authored and Dhruv Soni committed Apr 12, 2024
1 parent 6d420ea commit e981f06
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
1 change: 1 addition & 0 deletions packages/connect-aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"js-base64": "^3.7.5"
},
"devDependencies": {
"mocha": "^10.4.0",
"ts-loader": "^9.4.4",
"typescript": "^5.4.4"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-ipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"esbuild": "^0.19.4",
"esbuild-plugin-alias": "^0.2.1",
"esbuild-plugin-tsc": "^0.4.0",
"mocha": "^10.4.0",
"partykit": "0.0.24",
"ts-loader": "^9.4.4",
"typescript": "^5.2.2",
Expand All @@ -53,7 +54,6 @@
},
"dependencies": {
"@fireproof/aws": "workspace:^",
"@fireproof/connect": "workspace:^",
"@fireproof/core": "workspace:^",
"@fireproof/encrypted-blockstore": "workspace:^",
"@ucanto/core": "^8.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"author": "",
"license": "ISC",
"devDependencies": {
"mocha": "^10.4.0",
"ts-loader": "^9.4.4",
"typescript": "^5.2.2",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@fireproof/connect": "workspace:^",
"@fireproof/encrypted-blockstore": "workspace:^",
"@netlify/blobs": "^6.3.1",
"cross-fetch": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-partykit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"mocha": "^10.4.0",
"partykit": "0.0.85",
"ts-loader": "^9.4.4",
"typescript": "^5.2.2",
Expand All @@ -52,7 +53,6 @@
},
"dependencies": {
"@fireproof/aws": "workspace:^",
"@fireproof/connect": "workspace:^",
"@fireproof/encrypted-blockstore": "workspace:^",
"@web3-storage/pail": "^0.5.0",
"cross-fetch": "^4.0.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/encrypted-blockstore/scripts/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { spawn } from 'child_process'
import fs from "node:fs"
const args = process.argv.slice(2)

const testfiles=fs.readdirSync('test');
if(testfiles.length==0)
{
console.log('No files found to test');
process.exit(0);
}
let command = 'mocha test/*.js'

if (args.length > 0) {
Expand Down
23 changes: 13 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e981f06

Please sign in to comment.