Skip to content

Commit

Permalink
test(unit): add example
Browse files Browse the repository at this point in the history
  • Loading branch information
HasithDeAlwis authored and MFarabi619 committed Aug 13, 2024
1 parent b2a3a86 commit 39ec855
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/example.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, expect, it } from 'vitest'

describe('simple example test suite', () => {
it('should always pass', () => {
expect(true).toBe(true)
})
it('another test to always pass', () => {
expect(2 + 2).toBe(4)
})
})
11 changes: 11 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'vitest/config'

// TODO: refactor after monorepo migration
// see: https://vitest.dev/guide/workspace.html
export default defineConfig({
test: {
include: ['tests/unit/**/*.ts'],
name: 'example',
environment: 'node',
},
})

0 comments on commit 39ec855

Please sign in to comment.