207 Commits (master)
 

Author SHA1 Message Date
Zed A. Shaw c67ebcd0e7 More tests to reach average 95% coverage, only thing can't really test is payments since that requires paypal. These tests are very simple and just enough to do a basic smoke test with more coming later. 3 days ago
Zed A. Shaw d4000a021d Add a simple quick chat test to the demos. 3 days ago
Zed A. Shaw b2a08ad4d6 Only run demos when DANGER_ADMIN and login so more of the components can load like FairPay and Chat. 3 days ago
Zed A. Shaw 3ea4feafa8 Using cross-env to get the env vars for the coverage runs on all platforms. 3 days ago
Zed A. Shaw 98beeb07ad Test coverage is now at 92% of the lines which was my goal for today. Now as I work I'll start trying to increase the coverage of functions and aim for 90% if I can. 3 days ago
Zed A. Shaw 233935886f Initial simple test of the password reset. 4 days ago
Zed A. Shaw 8c7285fd75 Implements the user_profile tests. Did the commit wrong so screw it, here's everything. 4 days ago
Zed A. Shaw 1058e9821e Use the auth.js:login to implement the payments tests. 4 days ago
Zed A. Shaw 3c1140915b Implement a way to automatically login during tests. 4 days ago
Zed A. Shaw 20fb6f2f3e The entire User profile code was just wrong after the validation changes. 4 days ago
Zed A. Shaw 3a625578cb Add some convenient npm runners for coverage things. 4 days ago
Zed A. Shaw 79d59c9e17 Make it work on windows and use a hack to make the nv8 coverage actually output on ctrl-c. 4 days ago
Zed A. Shaw bac7711ce6 Need to do some path trickery to make it work on windows. 4 days ago
Zed A. Shaw 13fa3dcd2d Ended up writing my own coverage reporter because existing ones didn't work with ESM modules (nyx), or couldn't filter out junk from node_modules (c8), or were slow (both). 5 days ago
Zed A. Shaw 56e02d4c17 Get coverage for .svelte files from nyc. c8 can run the other stuff but doesn't understand the output format for instabul and there's no docs on what it wants, meanwhile nyc works but doesn't understand esm imports (even though it's 2021). 6 days ago
Zed A. Shaw 1ae2dc5129 Tests now support coverage inside playwright. Next need to add coverage to the non-browser tests. 6 days ago
Zed A. Shaw 863ea61bff A very simple smoke test of the UI component demos. 6 days ago
Zed A. Shaw ecbd9530eb Implement a very basic test of the payments when running in fake mode. Doing more extensive testing would require dealing with PayPal blocking automation, and handling bitcoin test coins, both of which are far too much work. 6 days ago
Zed A. Shaw 6c4bb5f68b Test for the ormish lib, but not the M:M and 1:M stuff yet. 1 week ago
Zed A. Shaw 698c476fab Implements a first attempt at a way to extract validation rules from the database schema. 2 weeks ago
Zed A. Shaw f3ca966cee A much cleaner method of cleaning objects before handing them to models to prevent injection bugs and erros with knex. 2 weeks ago
Zed A. Shaw 92a7f95d29 Make user_payment tests run clean. 2 weeks ago
Zed A. Shaw 0d0f495b0d Small formatting change. 2 weeks ago
Zed A. Shaw 30bd02677b The client/lib/helpers.js was in a weird place, and it should probably be named something else. 2 weeks ago
Zed A. Shaw 592fea4a15 Use src instead of url since that's consistent. 2 weeks ago
Zed A. Shaw cdc6c3037d Slightly better locking scenario on the Source component by checking first to see if it's already been done. 2 weeks ago
Zed A. Shaw 9cc31132c4 Jeez eslint get a life. 2 weeks ago
Zed A. Shaw de16b34850 In theory this should serialize lazy script loading so that it's more reliable, however it will also slow down load times since the locking happens all the time. I'll have to revisit how to avoid the lock. 2 weeks ago
Zed A. Shaw 3ecb15498d Created a Mutex which wasn't useful for solving the lazy schema loading race condition, but might be useful in the browser. 2 weeks ago
Zed A. Shaw e4614ce9bb Start a simple validation test for users which will become a more involved DB validation system. 2 weeks ago
Zed A. Shaw 25db433c4e Implement a better schema loading that doesn't have race conditions like the old trash. 2 weeks ago
Zed A. Shaw 765e01269f A bit of cleanup for the User Profile UI. 2 weeks ago
Zed A. Shaw 366510c617 Stop the emails from printing to terminal. 2 weeks ago
Zed A. Shaw 0fcf8e8878 Using the new validation framework for purchases, although this is the most complex usage since Paypal works differently from BTCPay such that it can really only be used on 1/2 of the Paypal purchase. 2 weeks ago
Zed A. Shaw d891a55341 All of the validation code found in FormField is now moved to client/api.js and lib/api.js for the new validation system. 2 weeks ago
Zed A. Shaw 23391b783d Update the form demo to use the new validation system. 2 weeks ago
Zed A. Shaw 103b102b0d Use the validation system with Login, but this uses it only client side since it relies on Passport and you can't add it there. 2 weeks ago
Zed A. Shaw e01d116cf1 Validation changes needed for user profiles. 2 weeks ago
Zed A. Shaw 95b8b1917b Model changes to support unsubscribe in /api/emails.js. 2 weeks ago
Zed A. Shaw 9dfbe0c121 Use the new validation system in the User Profile settings. 2 weeks ago
Zed A. Shaw 672de481ac Update the Reset Password systemt o use the new validation system. 2 weeks ago
Zed A. Shaw 3c96eac86f Update registration to use the new validation system. 2 weeks ago
Zed A. Shaw f4ca07db54 Use the validation framework in the Unsubscribe feature, and fix a few bugs discovered with that. 2 weeks ago
Zed A. Shaw 4c0eb49164 Use the new validation system in the email admin/testing tool. 2 weeks ago
Zed A. Shaw ebdf468248 Implement a better validation system that relies on rules being defined in the /api server, but shared back to the client to allow for subsequent testing of the input before the client tries again. 2 weeks ago
Zed A. Shaw a3947ee367 SECURITY: Stop leaking code information when not in DANGER_ADMIN. 2 weeks ago
Zed A. Shaw 6a3890952a Added a few fake credit cards from paypal also https://developer.paypal.com/docs/payflow/integration-guide/test-transactions/ 2 weeks ago
Zed A. Shaw 561643210c Fully working twitter/og card demos. 3 weeks ago
Zed A. Shaw 7b3e8416df Update the test_og_card demo to see if it works. 3 weeks ago
Zed A. Shaw e78a928124 Include the rendered index in the template start. 3 weeks ago