Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin tests #26

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Add plugin tests #26

wants to merge 13 commits into from

Conversation

sinyo-matu
Copy link
Collaborator

related issue: #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

await withFresh("./tests/fixture/dev.ts", async (address) => {

the WithFresh function will start the Fresh web server of the fixture/ for our test process.

Todo:

  • test for sitemap generation.
  • test for include functionality
  • test for exclude functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants