Replace the build system, closes #110, #111 - #112
Conversation
e640cc6 to
4e1192f
Compare
4e1192f to
7eacd53
Compare
7eacd53 to
80fe7ec
Compare
|
Thanks! Vite definitely looks like an improvement over my original custom system. Regarding the tests, I fetched this branch and played with a little on my machine, and I'm still a puzzled by the failing tests. My assumption right now is that there's something about the Jest mocks that isn't working. The mocks achieve a couple of basic things: replace the asynchronous localstorage code with synchronous code, and preload the test data for tournaments and players. Since the "Loading..." text is appearing in test snapshots now, it doesn't seem like either of those things is happening. I'll look at it closer once I get a chance. If the mocks are indeed the problem, I'm partially wondering if it's worth keeping them, although then we'd still have to solve the headache of dealing with asynchronous localstorage while testing. |
|
I think I may have found the root issue, although I haven't fixed anything yet to confirm it. It seems that the current Right now, I'm feeling more inclined to avoid mocks entirely by passing the data and DB implementation explicitly. That would likely mean adding parameters to a lot of components though, which would introduce a bigger diff in the source code (which wouldn't necessarily be a bad thing, once it's complete). We can see how well it works or if there's an easier solution. |
|
It looks like this broke the localforage bindings, so I just pushed a commit to fix that. I'm still working on fixing the tests. |
Yes localforage is kinda a problem because they don't support ES6 natively, once you're done or think I can assist just hit me up 👌 |
|
I just pushed another commit that should fix the tests. A few notes for posterity:
I'm going to come back and review it again when I get the time (that may be after the holiday here in the US) but this hopefully should be the start of getting things back on track now. |
|
It looks like GitHub actions failures might be due to this issue: jihchi/vite-plugin-rescript#231 @PascalHonegger Feel free to fix that if you're able to. I'll take a closer look once I have a chance, but that probably won't be this week. |
046b7d0 to
38bd489
Compare
johnridesabike
left a comment
There was a problem hiding this comment.
I've fixed the tests and cleaned up my last few commits. Right now, I think these changes all look good. Unless one of us notices anything else we need to fix, I'm happy to merge this soon.
Also simplify the localforage code
Works around this bug: jihchi/vite-plugin-rescript#231
38bd489 to
e4ff2e5
Compare
No description provided.