Ghost/ghost/admin
2024-11-25 07:22:27 +00:00
..
app Added Sentry logging in editor for incorrectly untitled slug values (#21682) 2024-11-23 00:25:18 +00:00
config Fixed editor not loading in Admin acceptance tests 2024-08-21 11:49:05 +01:00
lib Updated admin-x-activitypub URL to point at shorter cached version (#21378) 2024-10-23 13:03:40 +01:00
mirage 🐛 Fixed Istanbul timezone (#21686) 2024-11-21 17:23:21 +00:00
public/assets Stats page design fixes (#21171) 2024-10-01 17:51:55 +02:00
tests 🐛 Fixed slug not always updating for draft posts (#21691) 2024-11-23 00:24:17 +00:00
.editorconfig deps: ember-cli@2.8.0 2016-10-07 17:32:30 +01:00
.ember-cli Co-located component template files 2020-05-18 13:14:08 +01:00
.eslintignore Updated Ember dependencies to 3.24 (#2221) 2022-01-22 11:24:26 +00:00
.eslintrc.js Fixed Admin tests 2024-09-03 10:46:25 +01:00
.lint-todo 🐛 Fixed "Unsaved post" modal shown when updating visibility in post settings (#21511) 2024-11-04 07:42:47 +00:00
.lint-todorc.js Reset linter warnings with longer decay times 2022-05-09 12:57:19 +01:00
.template-lintrc.js Fixed signin and signup button failure state hover colors 2024-10-17 16:54:23 +01:00
.watchmanconfig deps: ember-cli@1.13.13 2015-11-30 11:21:39 -06:00
ember-cli-build.js Added full-page refresh when new post route is in a bad state 2024-09-23 22:38:34 +01:00
ember-cli-update.json Updated core files to match ember-cli new output 2020-08-03 09:24:58 +01:00
jsconfig.json 🐛 Fixed beta editor HTML cards auto-closing tags when rendering 2023-06-19 14:39:51 +02:00
package.json v5.101.4 2024-11-25 07:22:27 +00:00
README.md 🎨 Removed member bulk deletion safeguard from safe queries (#20747) 2024-08-14 15:48:54 +00:00
testem.js Only show failed tests in Admin CI output 2022-08-31 15:53:27 +01: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 yarn 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 yarn 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:

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

Then run tests with:

TZ=UTC yarn 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 yarn 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-2024 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.