-
Notifications
You must be signed in to change notification settings - Fork 628
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
Check file changes during test #476
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding checkSourceFileChanges - it will be nice to not introduce any inadvertent changes to the source tree.
Just one comment...
test.ts
Outdated
async function checkSourceFileChanges(startTime: number): Promise<void> { | ||
await Deno.stdout.write( | ||
new TextEncoder().encode("test checkSourceFileChanges ... ") | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not console.log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
Please pay attention to the migration script, as it's responsible for migrating all items and votes. I've also changed all instances of `monotonicUlid()` to `ulid()` at there appears to be a bug that prevents `monotonicUlid()` from respecting the `seedTime` parameter. The migration can be simulated as follows: 1. Switch to **main** branch. 2. Run `deno run db:reset`. 3. Run `deno run db:seed`. 4. Run `deno task start` and navigate to `http://localhost:8000`. 6. Vote some items. 7. Note the voted items and the order of the items feed. 8. Switch to **ulid-items** branch. 9. Run `deno run db:migrate`. 10. Run `deno task start` and navigate to `http://localhost:8000`. 11. Check that the voted items and the order of the items feed are identical to those previously noted. Closes denoland#475 Closes denoland#476
This PR:
closes #408