The Wayback Machine - https://web.archive.org/web/20210807165201/https://github.com/go-gitea/gitea/pull/15860/files
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 jest rootDir and test-frontend dependency #15860

Merged
merged 3 commits into from May 14, 2021
Merged
Changes from all commits
Commits
File filter
Filter file types
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -359,7 +359,7 @@ test-backend:
@$(GO) test $(GOTESTFLAGS) -mod=vendor -tags='$(TEST_TAGS)' $(GO_PACKAGES)

.PHONY: test-frontend
test-frontend:
test-frontend: node_modules
@NODE_OPTIONS="--experimental-vm-modules --no-warnings" npx jest --color

.PHONY: test-check
@@ -1,8 +1,9 @@
export default {
setupFilesAfterEnv: ['jest-extended'],
testTimeout: 20000,
rootDir: 'web_src',
testMatch: [
'**/web_src/**/*.test.js',
'<rootDir>/**/*.test.js',
],
transform: {},
verbose: false,
ProTip! Use n and p to navigate between commits in a pull request.