summaryrefslogtreecommitdiff
path: root/tests/js/utils.mjs (unfollow)
Commit message (Expand)AuthorFilesLines
2024-03-01src/hero.mjs: Always recreate the unix socket fileEuAndreh1-0/+3
2024-03-01src/hero.mjs: Add app name as first argument to buildServer()EuAndreh2-8/+11
2024-03-01src/hero.mjs: Add actionsFn() and lineHandlerFn()EuAndreh2-1/+189
2024-03-01Makefile: Let the application recreate its pipes and socketsEuAndreh1-1/+1
2024-03-01Setup user-level lighttpd reverse proxy for development and testing•••Add static files as in production, too. EuAndreh6-1/+126
2024-03-01src/web.mjs: Try out new hero APIEuAndreh1-13/+13
2024-03-01src/ircd.mjs: Remove unix socket before recreating itEuAndreh2-5/+10
2024-03-01src/api.mjs: Simplify handling of argumentsEuAndreh2-17/+12
2024-03-01src/utils.mjs: Remove eq(), use utils.isDeepStrictEqual from "node:utils" ins...EuAndreh2-114/+0
2024-02-28src/utils.mjs: Replace promisify() by util.promisify()EuAndreh3-42/+6
2024-02-28src/utils.mjs: Add undefinedAsNull()EuAndreh2-0/+22
2024-02-28src/utils.mjs: Define strSortFn() and use it on all filesEuAndreh5-5/+25
2024-02-28tests/runner.mjs: Use process.stderr.write() to avoid printing newlines when ...EuAndreh1-2/+5
2024-02-28tests/runner.mjs: Remove unused `AssertionError` typeEuAndreh1-2/+0
2024-02-25src/hero.mjs: Promote log() to fancy logger objectEuAndreh4-16/+242
2024-02-25Explicit import from "node:process"; move log() to hero.mjsEuAndreh9-41/+56
2024-02-24Normalize how modules import and name each other•••Also add a `defaultInterceptors` variable in `src/hero.mjs` to avoid needing to redefine it in every application. EuAndreh17-90/+92
2024-02-23src/hero.mjs: Add buildServer()EuAndreh7-144/+322
2024-02-23Implement accretion.runMigrations() and wrappings of node-sqlite3EuAndreh8-40/+296
2024-02-23Big cleanup•••- delete all SQLite Node-API code: we'll use the C++ one instead; - implement hero.mjs, with tests! - use ESM all over. EuAndreh26-292/+1696
2024-02-21Remove C code and cleanup repositoryEuAndreh29-2771/+21
2023-11-27Makefile: Include SQL migration files as installable artifactsEuAndreh3-1/+16
2023-11-27Makefile: Also recompile `src/napi-sqlite.lo` when Makefile changesEuAndreh1-0/+1
2023-11-27Makefile: Fix missing installation of the `napi-sqlite.{c,node}` source and ...EuAndreh1-1/+2
2023-11-27Makefile: Fix missing installation of the `src/cli` executable•••The `$PREFIX/bin/papo` was being installed as a symlink, but the target was empty. EuAndreh1-1/+1
2023-11-27tests/js/db.js: Disable test for incomplete codeEuAndreh1-1/+1
2023-11-27src/db.js: Inline fallback definition of $PAPO_DB_PATHEuAndreh2-4/+1
2023-11-25src/config.h.in: Add provenance links and explanation for _XOPEN_SOURCE and _...EuAndreh1-1/+20
2023-11-25Makefile: Erase $(JSLIBDIR) together with $(SRCDIR)EuAndreh1-1/+1
2023-11-25Makefile: Compose $(CFLAGS.a) with $(CFLAGS) instead of combine•••Instead of defining a toplevel $(CFLAGS.a) that includes everything from $(CFLAGS) plus whatever is statically defined in the Makefile, we now use both $(CFLAGS) and $(CFLAGS.a) together, and we define neither. Now one can keep a single usage of $(CFLAGS), and override $(CFLAGS.a) when desired. Where previously, in order to give a flag only to $(CFLAGS.a), one had to write: $ make CFLAGS.a="$CFLAGS --.a-only" Now can be done via: $ make CFLAGS.a="--.a-only" IOW, previously $(CFLAGS.so) was "everything you gave to $(CFLAGS), plus this extra -fPIC" what now is "override $(CFLAGS), $(CFLAGS.a) or $(CFLAGS.so) as you wish". The same is true for $(LDLIBS), $(LDLIBS.a) and $(LDLIBS.so). EuAndreh1-11/+8
2023-11-17src/napi-sqlite.c: Improve error handlingEuAndreh4-134/+223
2023-11-16tests/runner.js: Replace hand-rolled assert with "node:assert" moduleEuAndreh2-56/+45
2023-11-16Add WIP non-async functions to napi-sqlite.cEuAndreh9-101/+833
2023-11-15Makefile, mkdeps.sh: Enforce JS->native dependency•••Assert that we'll always have the `src/napi-sqlite.node` binary ready by the time we get to any JavaScript file. EuAndreh3-0/+9
2023-11-15TODOs.md: Add relevant quote on software correctness and disciplineEuAndreh1-0/+15
2023-11-15mv src/cli src/cli.jsEuAndreh2-3/+4
2023-11-15Add support for multi-file C project•••- have dynamic discovered dependencies via `mkdeps.hs`, and also move the listing of JavaScript files to it. - copy over stub C files for setting up the project skeleton. EuAndreh25-96/+1831
2023-11-13src/napi-sqlite.c: Add Node-API PoCEuAndreh3-2/+75
2023-11-13tests/assert-*.sh: Reuse rebuilt assets for testsEuAndreh4-22/+7
2023-11-13tests/assert-*.sh: Allow tests to run independently from "all" and from each ...EuAndreh4-16/+34
2023-11-13tests/assert-uninstall.sh: Split from assert-install.shEuAndreh3-17/+28
2023-11-13Makefile: Clean directory symlink potential leftover before recreatingEuAndreh1-0/+1
2023-11-12tests/assert-*.sh: Normalize output using yellow and green colorsEuAndreh4-10/+26
2023-11-11src/{ircd,web}.js: Init stub serversEuAndreh8-11/+110
2023-11-10TODOs.md: Add #td-d27aca11-9449-bb0e-08cb-2a8ef9778a11EuAndreh1-0/+11
2023-11-10TODOs.md: Add "Relevant links" sectionEuAndreh1-0/+34
2023-11-10.gitignore: Exclude the generated .3js fileEuAndreh1-0/+1
2023-11-10tests/js/: Run the files directly•••Instead of dynamically `import()`ing them in `tests/runner.js`, make each test file instead load `tests/runner.js` and run its own tests. EuAndreh3-17/+11
2023-11-10tests/js/utils.js: Remove test on "new Date()" objectsEuAndreh1-8/+0
2023-11-10src/utils.js: 💅 add extra newline separationEuAndreh1-0/+1