fresh-seo icon indicating copy to clipboard operation
fresh-seo copied to clipboard

Add plugin tests

Open sinyo-matu opened this issue 1 year ago • 0 comments

related issue: https://github.com/xstevenyung/fresh-seo/issues/25

Based on the Fresh Project, I wrote some code for plugin testing.

In the tests/ directory, the fixture/ directory is a stub Fresh site as a test target. In the file plugin.test.ts https://github.com/xstevenyung/fresh-seo/blob/14b9c057535a47fa41a64e8f8e52c7fe3d2312fe/tests/plugin.test.ts#L9 the WithFresh function will start the Fresh web server of the fixture/ for our test process.

Todo:

  • [x] test for sitemap generation.
  • [ ] test for include functionality
  • [ ] test for exclude functionality

sinyo-matu avatar Aug 14 '23 04:08 sinyo-matu