Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Aug 9, 2024
1 parent 160368a commit 2551ba0
Show file tree
Hide file tree
Showing 17 changed files with 98 additions and 67 deletions.
4 changes: 2 additions & 2 deletions examples/mars-rover/steps.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Type } from '@sinclair/typebox'
import assert from 'assert/strict'
import { backOff } from 'exponential-backoff'
import { regExpMatchedStep } from '../../runner/regExpMatchedStep.js'
import { Direction, rover } from './rover.js'
import type { StepRunner } from '../../runner/runSuite.js'
import { backOff } from 'exponential-backoff'
import { Direction, rover } from './rover.js'

export type RoverContext = {
rover?: ReturnType<typeof rover>
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export * from './reporter/markdownReporter.js'
export * from './runner/codeBlockOrThrow.js'
export * from './runner/logger.js'
export * from './runner/matchGroups.js'
export * from './runner/regExpMatchedStep.js'
export * from './runner/runFolder.js'
export * from './runner/runSuite.js'
export * from './runner/regExpMatchedStep.js'
export * from './runner/UnreplacedPlaceholdersError.js'
95 changes: 63 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
},
"devDependencies": {
"@bifravst/eslint-config-typescript": "6.1.13",
"@bifravst/prettier-config": "1.0.4",
"@bifravst/prettier-config": "1.1.0",
"@commitlint/config-conventional": "19.2.2",
"@types/node": "20.14.14",
"@types/node": "22.1.0",
"@types/toposort": "2.0.7",
"check-node-version": "4.2.1",
"commitlint": "19.4.0",
Expand Down Expand Up @@ -92,7 +92,7 @@
"README.md"
],
"peerDependencies": {
"@sinclair/typebox": "^0.33.1",
"@sinclair/typebox": "^0.33.2",
"chalk": "^5.3.0",
"jsonata": "^2.0.5",
"toposort": "^2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion reporter/markdownReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import type {
StepResult,
SuiteResult,
} from '../runner/runSuite.js'
import type { ScenarioWithExamples } from '../runner/suiteWalker.js'
import { inputTable } from './markdown/inputTable.js'
import { logEntry } from './markdown/logEntry.js'
import type { ScenarioWithExamples } from '../runner/suiteWalker.js'

export const markdownReporter = async (result: SuiteResult): Promise<string> =>
prettier.format(
Expand Down
8 changes: 4 additions & 4 deletions runner/UnreplacedPlaceholdersError.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, it } from 'node:test'
import { UnreplacedPlaceholdersError } from './UnreplacedPlaceholdersError.js'
import assert from 'node:assert'
import os from 'node:os'
import path from 'node:path'
import { describe, it } from 'node:test'
import { StepKeyword } from '../parser/grammar.js'
import { Source } from './getUnreplacedPlaceholders.js'
import assert from 'node:assert'
import os from 'node:os'
import { UnreplacedPlaceholdersError } from './UnreplacedPlaceholdersError.js'

describe('UnreplacedPlaceholdersError', () => {
it('should format the error', () => {
Expand Down
2 changes: 1 addition & 1 deletion runner/UnreplacedPlaceholdersError.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'node:path'
import os from 'node:os'
import path from 'node:path'
import type { Step } from '../parser/grammar.js'
import type { Unreplaced } from './getUnreplacedPlaceholders.js'

Expand Down
4 changes: 2 additions & 2 deletions runner/formatTypeBoxErrors.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, it } from 'node:test'
import { Type } from '@sinclair/typebox'
import assert from 'node:assert/strict'
import { describe, it } from 'node:test'
import { formatTypeBoxErrors } from './formatTypeBoxErrors.js'
import { validate } from './validate.js'
import { Type } from '@sinclair/typebox'

void describe('formatTypeBoxErrors()', async () =>
void it('should format TypeBox errors', () => {
Expand Down
2 changes: 1 addition & 1 deletion runner/matchGroups.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type Static, type TObject } from '@sinclair/typebox'
import { validate } from './validate.js'
import { formatTypeBoxErrors } from './formatTypeBoxErrors.js'
import { validate } from './validate.js'

export class MatchError extends Error {
constructor(message: string) {
Expand Down
6 changes: 3 additions & 3 deletions runner/parseFeaturesInFolder.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { readdir, stat } from 'fs/promises'
import { readFile } from 'node:fs/promises'
import { parse } from 'node:path'
import path from 'path'
import { feature } from '../parser/feature.js'
import type { Feature } from '../parser/grammar.js'
import { tokenStream } from '../parser/tokenStream.js'
import { feature } from '../parser/feature.js'
import { readdir, stat } from 'fs/promises'
import path from 'path'

export type FeatureFile = {
file: ReturnType<typeof parse>
Expand Down
2 changes: 1 addition & 1 deletion runner/regExpMatchedStep.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type Static, type TObject } from '@sinclair/typebox'
import type { StepRunner, StepRunnerArgs } from './runSuite.js'
import { matchGroups } from './matchGroups.js'
import type { StepRunner, StepRunnerArgs } from './runSuite.js'

export const regExpMatcher =
(matcher: ReturnType<typeof matchGroups>) =>
Expand Down
2 changes: 1 addition & 1 deletion runner/replaceFromExamples.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Step } from '../parser/grammar.js'
import jsonata from 'jsonata'
import { type Step } from '../parser/grammar.js'

export const replaceFromExamples = async (
step: Step,
Expand Down
4 changes: 2 additions & 2 deletions runner/runSuite.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Type } from '@sinclair/typebox'
import assert from 'assert/strict'
import { randomUUID } from 'node:crypto'
import { describe, it } from 'node:test'
Expand All @@ -7,15 +8,14 @@ import {
loadFeatureFile,
parseFeaturesInFolder,
} from './parseFeaturesInFolder.js'
import { regExpMatchedStep } from './regExpMatchedStep.js'
import {
runSuite,
type FeatureResult,
type ScenarioResult,
type StepResult,
type StepRunner,
} from './runSuite.js'
import { regExpMatchedStep } from './regExpMatchedStep.js'
import { Type } from '@sinclair/typebox'

describe('runSuite()', () => {
it('should run a simple test suite', async () => {
Expand Down
6 changes: 3 additions & 3 deletions runner/runSuite.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os from 'node:os'
import path, { type ParsedPath } from 'path'
import type { Step } from '../parser/grammar.js'
import {
logger,
type LogEntry,
Expand All @@ -8,11 +10,9 @@ import {
import { type FeatureFile } from './parseFeaturesInFolder.js'
import {
suiteWalker,
type ScenarioWithExamples,
type FeatureVariant,
type ScenarioWithExamples,
} from './suiteWalker.js'
import os from 'node:os'
import type { Step } from '../parser/grammar.js'

export type StepRunnerArgs<Context extends Record<string, any>> = {
feature: FeatureVariant
Expand Down
6 changes: 3 additions & 3 deletions runner/suiteWalker.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, it, mock } from 'node:test'
import { suiteWalker } from './suiteWalker.js'
import assert from 'node:assert'
import path from 'node:path'
import { describe, it, mock } from 'node:test'
import { parseFeaturesInFolder } from './parseFeaturesInFolder.js'
import assert from 'node:assert'
import { suiteWalker } from './suiteWalker.js'

describe('suiteWalker()', () => {
it('should walk a suite', async () => {
Expand Down
10 changes: 5 additions & 5 deletions runner/suiteWalker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import type path from 'node:path'
import {
Keyword,
type Feature,
type Step,
type Row,
type Scenario,
type Step,
} from '../parser/grammar.js'
import { orderFeatures } from './orderFeatures.js'
import type { FeatureFile } from './parseFeaturesInFolder.js'
import { replaceFromExamples } from './replaceFromExamples.js'
import { replaceFromContext } from './replaceFromContext.js'
import {
Source,
getUnreplacedPlaceholders,
} from './getUnreplacedPlaceholders.js'
import { orderFeatures } from './orderFeatures.js'
import type { FeatureFile } from './parseFeaturesInFolder.js'
import { replaceFromContext } from './replaceFromContext.js'
import { replaceFromExamples } from './replaceFromExamples.js'
import { UnreplacedPlaceholdersError } from './UnreplacedPlaceholdersError.js'

type FeatureListenerArgs = {
Expand Down
Loading

0 comments on commit 2551ba0

Please sign in to comment.