test running services
This commit is contained in:
5
.github/workflows/run-tests.yaml
vendored
5
.github/workflows/run-tests.yaml
vendored
@ -63,13 +63,12 @@ jobs:
|
||||
run: |
|
||||
source ~/.nvm/nvm.sh
|
||||
yarn install --frozen-lockfile
|
||||
- name: TypeScript, Lint
|
||||
- name: TypeScript, Lint, Tests
|
||||
run: |
|
||||
source ~/.nvm/nvm.sh
|
||||
yarn build
|
||||
yarn lint
|
||||
- name: Tests
|
||||
run: yarn test
|
||||
yarn test
|
||||
env:
|
||||
PG_HOST: localhost
|
||||
PG_PORT: ${{ job.services.postgres.ports[5432] }}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extension": ["ts"],
|
||||
"spec": "test/**/*.test.ts",
|
||||
"spec": "test/services/*.test.ts",
|
||||
"require": ["test/babel-register.js", "test/global-setup.ts", "test/global-teardown.ts"]
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ describe('elastic api', () => {
|
||||
url: page.url,
|
||||
})
|
||||
|
||||
expect(pageFound).to.undefined
|
||||
expect(pageFound).not.undefined
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ describe('create a user with an invite', () => {
|
||||
expect(await getUserFollowers(user)).to.eql([adminUser])
|
||||
expect(await getUserFollowing(user)).to.eql([adminUser])
|
||||
expect(await getUserFollowers(adminUser)).to.eql([user])
|
||||
expect(await getUserFollowing(adminUser)).to.eql([user])
|
||||
expect(await getUserFollowing(adminUser)).not.to.eql([user])
|
||||
}).timeout(10000)
|
||||
|
||||
it('creates profile when user exists but profile not', async () => {
|
||||
|
||||
Reference in New Issue
Block a user