Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Fixed
- `bedrock-auto` now awaits test compilation. #TINY-14037

## 16.1.1 - 2026-03-12

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion modules/server/src/main/ts/bedrock/server/RunnerRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export const generate = async (mode: string, projectdir: string, basedir: string

const resourceRoutes = resourceRoots.map(({name, folder}) => Routes.routing('GET', `/project/${name}`, path.join(projectdir, folder)));

const compiledTests = mode === 'auto' ? Promise.resolve(await testGenerator.generate()) : testGenerator.generate();

const routers = [
...nodeModuleRoutes,
...resourceRoutes,
Expand All @@ -104,7 +106,7 @@ export const generate = async (mode: string, projectdir: string, basedir: string
Routes.nodeResolveFile('GET', '/agar-sw.js', projectdir, '@ephox/agar-sw', 'dist/agar-sw.js'),

// test code
Routes.asyncJs('GET', '/compiled/tests.js', testGenerator.generate()),
Routes.asyncJs('GET', '/compiled/tests.js', compiledTests),
Routes.routing('GET', '/compiled', path.join(projectdir, scratchdir, 'compiled')),

// harness API
Expand Down
Loading