Entries gain an optional inclusive end_date (backfilled via migration): flights and travel longer than 24h show a continuation marker on following days, and a new stay entry type marks a time frame in one area (e.g. 3 days Venice) rendered as continuous bands across the calendar weeks. Stays feed the map route as stops; the route summary gains stays count and a chronological areas list with day spans. 49 API tests.
14 lines
642 B
JavaScript
14 lines
642 B
JavaScript
// Test barrel. The package.json `test` script runs `node --test tests/`, which
|
|
// on this Node build resolves the directory to `tests/index.js` and runs it as
|
|
// a single test file rather than scanning the directory. Importing each test
|
|
// module here registers its tests with the runner. Add new test files below.
|
|
//
|
|
// These run in one process, so each test file scopes its fixtures with
|
|
// top-level beforeEach/afterEach that touch only its own module-level
|
|
// app/tmpDir — keeping the files independent.
|
|
import './api.test.js';
|
|
import './costs.test.js';
|
|
import './flights.test.js';
|
|
import './rental.test.js';
|
|
import './stays.test.js';
|