Skip to content

Commit

Permalink
test: fix pattern + setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Dec 6, 2024
1 parent d78666f commit efde058
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="@types/chai-subset" />
import { describe, it } from 'mocha'
import $rdf from '@shaperone/testing/env.js'
import { rdf, sh } from '@tpluscode/rdf-ns-builders'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="@types/chai-quantifiers" />
import { testFocusNodeState, testPropertyState, testStore } from '@shaperone/testing/models/form.js'
import $rdf from '@shaperone/testing/env.js'
import { expect } from 'chai'
Expand Down
4 changes: 2 additions & 2 deletions packages/core-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.1.1",
"type": "module",
"scripts": {
"test": "mocha \"**/*.ts\""
"test": "mocha \"**/*.ts\" --exclude \"node_modules/**/*.ts\""
},
"devDependencies": {
"@hydrofoil/shaperone-core": "*",
Expand All @@ -29,7 +29,7 @@
},
"mocha": {
"require": [
"./test-setup.js"
"./test-setup.ts"
],
"loader": "ts-node/esm/transpile-only"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import chaiQuantifiers from 'chai-quantifiers'
import * as chai from 'chai'
import sinonChai from 'sinon-chai'
import chaiSubset from 'chai-subset'
import type { RequiredEnvironment } from '@hydrofoil/shaperone-core/env.js'
import { setEnv } from '@hydrofoil/shaperone-core/env.js'
import rdf from '@zazuko/env'

Expand All @@ -12,6 +13,6 @@ chai.use(chaiSubset)

export const mochaHooks = {
beforeAll() {
setEnv(rdf)
setEnv(rdf as unknown as RequiredEnvironment)
},
}

0 comments on commit efde058

Please sign in to comment.