Skip to content

Commit 84ce7e8

Browse files
authored
fix: Always use explicit imports instead of globals (#12)
* fix: Always use explicit imports instead of globals * Linting * Add trailing commas
1 parent aa48b2d commit 84ce7e8

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"semi": false,
5+
"trailingComma": "all"
6+
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { AdapterTestNameMethods } from './methods.js'
55
import methodTests from './methods.js'
66
import type { AdapterTestNameSyntax } from './syntax.js'
77
import syntaxTests from './syntax.js'
8-
import { describe, it } from 'vitest'
8+
import { describe, it, beforeAll, assert } from 'vitest'
99

1010
export type TestSuiteOptions = {
1111
app: Application

test/feathers-memory.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { defineTestSuite } from '../src/index.js'
22
import { feathers } from '@feathersjs/feathers'
33

44
import { MemoryService } from '@feathersjs/memory'
5+
import { describe } from 'vitest'
56

67
const testSuite = defineTestSuite({
78
blacklist: [

test/feathers-sequelize.test_.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { DataTypes, Sequelize } from 'sequelize'
44
import { feathers } from '@feathersjs/feathers'
55
import { SequelizeService } from 'feathers-sequelize'
66
import { defineTestSuite } from '../src/index.js'
7-
import { beforeAll } from 'vitest'
7+
import { beforeAll, describe } from 'vitest'
88

99
const testSuite = defineTestSuite({
1010
blacklist: [

test/utils.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { MemoryService } from '@feathersjs/memory'
22
import { withOptions } from '../src/utils.js'
3+
import { describe, expect, it } from 'vitest'
34

45
describe('utils', () => {
56
describe('witOptions', () => {

tsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
22
"extends": "@tsconfig/node22/tsconfig.json",
3-
"include": [
4-
"src/**/*.ts"
5-
],
3+
"include": ["src/**/*.ts"],
64
"compilerOptions": {
75
"outDir": "dist",
86
"declaration": true,
9-
"sourceMap": true,
10-
"types": ["vitest/globals"],
7+
"sourceMap": true
118
}
129
}

vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ dotenv()
55

66
export default defineConfig({
77
test: {
8-
globals: true,
98
coverage: {
109
provider: 'v8',
1110
reporter: ['text', 'lcov'],

0 commit comments

Comments
 (0)