Skip to content

Commit

Permalink
Run tests in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ar committed Oct 12, 2023
1 parent 62d082e commit 888883f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
Empty file added .github/workflows/pr.yml
Empty file.
24 changes: 16 additions & 8 deletions test/root.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@ import { definition } from '@/src/__generated__/definition'
import { RuntimeCompositeDefinition } from '@composedb/types'
import { test, describe, beforeAll, expect } from 'vitest'
import {
genericEntityQuery,
mutationCreateAttestation, mutationCreateClaim, mutationCreateProfile,
mutationCreateAttestation,
mutationCreateClaim,
mutationCreateProfile,
mutationCreateResearchComponent,
mutationCreateResearchObject, mutationUpdateAttestation, mutationUpdateResearchComponent, mutationUpdateResearchObject, queryAttestation, queryClaim, queryProfile, queryResearchComponent, queryResearchObject, queryResearchObjects
mutationCreateResearchObject,
mutationUpdateAttestation,
mutationUpdateResearchComponent,
mutationUpdateResearchObject,
queryAttestation,
queryClaim,
queryProfile,
queryResearchComponent,
queryResearchObject
} from '../utils/queries'
import { randomDID } from './util'
import { CeramicClient } from '@ceramicnetwork/http-client'
Expand All @@ -15,7 +24,6 @@ import { setTimeout } from "timers/promises";
import { Attestation, Claim, Profile, ResearchObject } from '@/types'

const CERAMIC_API = 'http:/localhost:7007'
const TIMEOUT = 7000
const A_CID = 'bafybeibeaampol2yz5xuoxex7dxri6ztqveqrybzfh5obz6jrul5gb4cf4'

const ceramic = new CeramicClient(CERAMIC_API)
Expand Down Expand Up @@ -211,13 +219,13 @@ describe('ComposeDB nodes', () => {
})

describe.skip('Annotations', async () => {
test('can comment on research component', async () => {});
test('can comment on research component', async () => { });

test('can comment on research object', async () => {});
test('can comment on research object', async () => { });

test('can suggest metadata change on research component', async () => {});
test('can suggest metadata change on research component', async () => { });

test('can suggest metadata changes on research object', async () => {});
test('can suggest metadata changes on research object', async () => { });
});

describe('User', async () => {
Expand Down

0 comments on commit 888883f

Please sign in to comment.