@empiricalrun/test-run 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @empiricalrun/test-run
2
2
 
3
+ ## 0.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 049102a: fix: support suites in agent tool calls
8
+
3
9
  ## 0.7.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { TestCase } from "./types";
2
- export declare function runSingleTest({ testName, fileName, projects, }: {
2
+ export declare function runSingleTest({ testName, suites, fileName, projects, }: {
3
3
  testName: string;
4
+ suites: string[];
4
5
  fileName: string;
5
6
  projects?: string[];
6
7
  }): Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI7C,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;;;GAqBA;AAED,wBAAsB,YAAY,CAChC,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CA6CnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG7C,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;;;GAqBA;AAED,wBAAsB,YAAY,CAChC,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CA6CnC"}
package/dist/index.js CHANGED
@@ -9,12 +9,11 @@ const path_1 = __importDefault(require("path"));
9
9
  const lib_1 = require("./lib");
10
10
  const types_1 = require("./types");
11
11
  const utils_1 = require("./utils");
12
- // TODO: Support suites here
13
- async function runSingleTest({ testName, fileName, projects, }) {
12
+ async function runSingleTest({ testName, suites, fileName, projects, }) {
14
13
  const testDir = "tests";
15
14
  const filePath = path_1.default.relative(process.cwd(), fileName);
16
15
  const result = await (0, lib_1._runTest)({
17
- tests: [{ name: testName, dir: testDir, filePath, suites: [] }],
16
+ tests: [{ name: testName, dir: testDir, filePath, suites }],
18
17
  pwOptions: "",
19
18
  platform: types_1.Platform.WEB,
20
19
  projects,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-run",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"