Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
created tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Humston's School Account committed Sep 20, 2023
1 parent 9d0f15b commit a00a55f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Testing Directories
example/
test/
test/
node_modules/
9 changes: 9 additions & 0 deletions generate-test-files.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const fs = require('fs');
const { v4: uuid } = require('uuid');

fs.mkdirSync('test/');
for (i = 0; i < 10000; i++) {
fs.writeFileSync(`${uuid()}.txt`, `${new Date().toString()}`);
console.log(`./test/${i}/10000`);
}
console.log('done');
25 changes: 25 additions & 0 deletions package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"scripts": {
"start": "php -S localhost:8000"
"start": "php -S localhost:8000",
"gen-test": "node generate-test-files.cjs"
},
"devDependencies": {
"uuid": "^9.0.1"
}
}

0 comments on commit a00a55f

Please sign in to comment.