Files
DuckQ1u 93d1b7c3d3
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
first commit
2026-04-22 19:51:20 +07:00
..
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00
2026-04-22 19:51:20 +07:00

Ghost-Admin

This is the home of the Ember.js-based Admin app that ships with Ghost.

Test

Running tests in the browser

Run all tests in the browser by running pnpm dev in the Ghost monorepo and visiting http://localhost:4200/tests. The code is hotloaded on change and you can filter which tests to run.

Testing public documentation


Tip: You can use this.timeout(0); await this.pauseTest(); in your tests to temporarily pause the execution of browser tests. Use the browser console to inspect and debug the DOM, then resume tests by running resumeTest() directly in the browser console (docs)

Running tests in the CLI

To build and run tests in the CLI, you can use:

TZ=UTC pnpm test

Note the TZ=UTC environment variable which is currently required to get tests working if your system timezone doesn't match UTC.


However, this is very slow when writing tests, as it requires the app to be rebuilt on every change. Instead, create a separate watching build with:

pnpm build --environment=test -w -o="dist-test"

Then run tests with:

TZ=UTC pnpm test 1 --reporter dot --path="dist-test"

The --reporter dot shows a dot (.) for every successful test, and F for every failed test. It renders the output of the failed tests only.


To run a specific test file:

TZ=UTC pnpm test 1 --reporter dot --path="dist-test" -mp=tests/unit/helpers/gh-count-characters-test.js

To have a full list of the available options, run

ember exam --help

Copyright & License

Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license. Ghost and the Ghost Logo are trademarks of Ghost Foundation Ltd. Please see our trademark policy for info on acceptable usage.