Commit Graph

3652 Commits

Author SHA1 Message Date
Dillon Kearns
ace71d09ce Run glob test code directly through elm-pages so the test assertions can be against Elm data instead of JSON. 2022-02-28 14:43:57 -08:00
Dillon Kearns
81ab07897f Use micromatch to get glob captures to ensure that they match with the globby matching logic. 2022-02-27 11:27:49 -08:00
Dillon Kearns
ff9141d7ec Add some end-to-end glob specs. 2022-02-27 09:47:50 -08:00
Dillon Kearns
f3c636a45d Review fixes. 2022-02-27 08:50:43 -08:00
Dillon Kearns
39ec2d3d4f Remove redundant function argument to expectStringResponse and expectBytesResponse. 2022-02-27 08:44:00 -08:00
Dillon Kearns
68fe1c2539 Remove redundant map function from expectString. 2022-02-27 08:09:33 -08:00
Dillon Kearns
d11226df45 Fix test case. 2022-02-26 14:42:31 -08:00
Dillon Kearns
3d2ebc6965 Remove commented code. 2022-02-26 14:36:03 -08:00
Dillon Kearns
c48cec7cde Fix a test case. 2022-02-26 14:35:52 -08:00
Dillon Kearns
7afbd8188e Fix a test case. 2022-02-26 14:18:37 -08:00
Dillon Kearns
edfe401f30 Fix some test cases. 2022-02-26 14:10:31 -08:00
Dillon Kearns
c56052dd8b Update message in test assertion. 2022-02-26 13:32:34 -08:00
Dillon Kearns
9f9a300a24 Extract out new error variant. 2022-02-26 10:59:32 -08:00
Dillon Kearns
3872c5a365 Use rawUrl to parse query params. 2022-02-26 10:51:37 -08:00
Dillon Kearns
c8a37ed3c5 Review fixes. 2022-02-26 09:48:36 -08:00
Dillon Kearns
46edf07679 Run all cypress tests from cypress run script. 2022-02-26 09:47:17 -08:00
Dillon Kearns
f82212e222 Fix test cases. 2022-02-26 09:38:03 -08:00
Dillon Kearns
de74127a3d Fix some test cases. 2022-02-26 08:46:07 -08:00
Dillon Kearns
b54e14570d Fix test compilation errors. 2022-02-26 08:36:55 -08:00
Dillon Kearns
3ec317f031 Fix a test case. 2022-02-26 08:32:31 -08:00
Dillon Kearns
5924109f7c Fix a test case. 2022-02-26 07:44:16 -08:00
Dillon Kearns
00edf1cd6e Fix some test cases. 2022-02-25 17:30:21 -08:00
Dillon Kearns
fc4d470405 Fix some test errors. 2022-02-25 16:57:50 -08:00
Dillon Kearns
5351679bf7 Add Request.rawUrl. 2022-02-25 11:59:12 -08:00
Dillon Kearns
3468ac0a20 Simplify GotBatch decoder. 2022-02-25 11:59:02 -08:00
Dillon Kearns
1c56e82258 Simplify gotBatchPort payload (bytes are being handled as base64 string so may as well remove the Bytes part now since it's unused - might change it back for performance if it makes a difference). 2022-02-25 11:50:24 -08:00
Dillon Kearns
9ced0ccd2b Formatting. 2022-02-25 11:22:39 -08:00
Dillon Kearns
2d81800317 Add dev server styles into a css file and make sure that not found page styles are included. 2022-02-25 11:22:32 -08:00
Dillon Kearns
1c7ff8aa7c Fix 404 page message for non-matching routes. 2022-02-25 10:40:08 -08:00
Dillon Kearns
d99f908be3 Add an API end-to-end test case for mime type params. 2022-02-25 10:04:36 -08:00
Dillon Kearns
e082281b88 Update end-to-end example. 2022-02-25 10:04:19 -08:00
Dillon Kearns
9d50907053 Add some end-to-end test cases for API handlers and remove some obsolete request payload pre-processing in JavaScript (optimizations that were there for OptimizedDecoder's before but aren't needed with Lamdera Wire). 2022-02-25 09:07:57 -08:00
Dillon Kearns
a1609f5752 Add elm-review as dev dependency for pokedex example. 2022-02-25 09:05:22 -08:00
Dillon Kearns
1706880175 Add some more error handling around showing error messages to ensure that errors aren't dropped. 2022-02-25 09:02:36 -08:00
Dillon Kearns
e861713455 Update cypress version. 2022-02-25 08:58:00 -08:00
Dillon Kearns
0ca946421f Remove no-optional flag to fix cloudflare pages deploy issue with esbuild install. 2022-02-23 18:01:42 -08:00
Dillon Kearns
2edb61cb74 Reinstall dependencies and remove npm i -f flag to try on cloudflare pages. 2022-02-23 17:25:01 -08:00
Dillon Kearns
d48d062ed7 Make sure build error is printed. 2022-02-23 16:25:40 -08:00
Dillon Kearns
6f2a29a1f1 Fix ssr option. 2022-02-23 16:25:34 -08:00
Dillon Kearns
caea3f7c56 Don't fail build when missing config. 2022-02-23 16:25:28 -08:00
Dillon Kearns
a6a50b8300 See if vercel-build command works on vercel deployment. 2022-02-23 16:21:30 -08:00
Dillon Kearns
033db9fa59 Add favicon to template project. 2022-02-23 14:55:32 -08:00
Dillon Kearns
463adc8007 Move template's index.js and style.css entrypoints for new Vite setup. 2022-02-23 14:55:21 -08:00
Dillon Kearns
b9b68b06cc Add initial elm-pages.config.mjs file to template. 2022-02-23 14:39:31 -08:00
Dillon Kearns
da08e1e1b3 Add try catch to ensure dev error shows up even if console logging it fails. 2022-02-23 14:39:17 -08:00
Dillon Kearns
45126cdf1f Simplify value. 2022-02-23 14:38:50 -08:00
Dillon Kearns
f007f79ec1 Improve error when using implicit config file. 2022-02-23 14:38:32 -08:00
Dillon Kearns
b3216ea5db Update Site and Index.elm to use latest type contract in template. 2022-02-23 14:36:28 -08:00
Dillon Kearns
4226f3ecfb Update dependencies in template. 2022-02-23 14:36:07 -08:00
Dillon Kearns
13caf7c8cb Extract out two stylesheets in docs site. 2022-02-23 13:43:29 -08:00