You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a test setup for prebuild; support using SQLite in tests; explore node native testing lib vs mocha
Add tests for documents search, save, etc (and tags)
Integrate it into the testing pipeline
Current test setup is very naive -- it just compiles the full test+dependencies into test files with esbuild, then runs them:
consttestFiles=findTestFiles("src");testFiles.forEach(async(file)=>{awaitesbuild.build({entryPoints: [file],// NOTE: If changing filename, also update findTestFiles glob above to avoid// bundled test files being used as source!outfile: file.replace(".test.ts",".test.bundle.js"),bundle: true,platform: "node",external: ["mocha"],plugins: [],});});
It is surprisingly fast though -- as esbuild tends to be. I need to extend this setup for prebuild which works in node-land. Should support talking to sqlite so the tests can be real, and specifically test the documents module which creates / finds / saves notes, the core API of the app.
The text was updated successfully, but these errors were encountered:
Current test setup is very naive -- it just compiles the full test+dependencies into test files with esbuild, then runs them:
It is surprisingly fast though -- as esbuild tends to be. I need to extend this setup for prebuild which works in node-land. Should support talking to sqlite so the tests can be real, and specifically test the
documents
module which creates / finds / saves notes, the core API of the app.The text was updated successfully, but these errors were encountered: