Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
cache-dependency-path: 'pnpm-lock.yaml'
- run: pnpm install
- run: pnpm lint
- run: pnpm test:coverage
- run: pnpm build
env:
NODE_OPTIONS: '--max_old_space_size=4096'
- run: pnpm test:coverage
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we still running integration test for server? if it's unit test we shouldn't need to depend on build

- name: Cypress install
run: pnpm cypress install
- name: Install dependencies (Cypress Action)
Expand Down
4 changes: 3 additions & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
"cypress:run": "cypress run",
"e2e": "start-server-and-test dev http://localhost:3000 cypress:run",
"cypress:ci": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test start https-get://localhost:3000 cypress:run",
"test": "jest --runInBand --detectOpenHandles --forceExit"
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
},
"keywords": [],
"homepage": "https://flowiseai.com",
Expand Down
30 changes: 0 additions & 30 deletions packages/server/test/index.test.ts

This file was deleted.

39 changes: 0 additions & 39 deletions packages/server/test/routes/v1/organization-user.route.test.ts

This file was deleted.

54 changes: 0 additions & 54 deletions packages/server/test/routes/v1/user.route.test.ts

This file was deleted.

12 changes: 5 additions & 7 deletions packages/server/test/utils/api-key.util.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { generateAPIKey } from '../../src/utils/apiKey'

export function apiKeyTest() {
describe('Api Key', () => {
it('should be able to generate a new api key', () => {
const apiKey = generateAPIKey()
expect(typeof apiKey === 'string').toEqual(true)
})
describe('Api Key', () => {
it('should be able to generate a new api key', () => {
const apiKey = generateAPIKey()
expect(typeof apiKey === 'string').toEqual(true)
})
}
})
Loading