Skip to content

Commit

Permalink
0.66.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwong246 committed Oct 18, 2024
1 parent 40b7c14 commit ca95e74
Show file tree
Hide file tree
Showing 76 changed files with 4,184 additions and 5,116 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6666,7 +6666,7 @@ var initialState = {
error: "no_error"
};
var loginApp = (0, import_toolkit.createSlice)({
name: "my login app",
name: "my login app!",
initialState,
reducers: {
reset: (state) => {
Expand Down
38 changes: 14 additions & 24 deletions docs/node/chunk-JLEL7NCS.mjs → docs/node/chunk-SQS533HJ.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createRequire } from 'module';const require = createRequire(import.meta.url);
import {
puppeteer_core_default
} from "./chunk-RD6NELNE.mjs";
} from "./chunk-TILBILWP.mjs";
import {
init_cjs_shim
} from "./chunk-LD4XAW36.mjs";
Expand Down Expand Up @@ -251,7 +251,6 @@ var BaseBuilder = class {
scheduled: false
}, y) {
console.log(`testResourceConfiguration ${JSON.stringify(testResourceConfiguration, null, 2)}`);
await logWriter.mkdirSync(testResourceConfiguration.fs);
logWriter.writeFileSync(`${testResourceConfiguration.fs}/tests.json`, JSON.stringify(this.toObj(), null, 2));
const logFilePath = `${testResourceConfiguration.fs}/log.txt`;
const access = await logWriter.createWriteStream(logFilePath);
Expand All @@ -260,8 +259,6 @@ var BaseBuilder = class {
`);
};
const suiteDone = await runner(testResourceConfiguration, tLog, y);
const resultsFilePath = `${testResourceConfiguration.fs}/results.json`;
logWriter.writeFileSync(resultsFilePath, JSON.stringify(suiteDone.toObj(), null, 2));
const logPromise = new Promise((res, rej) => {
access.on("finish", () => {
res(true);
Expand Down Expand Up @@ -352,10 +349,17 @@ var Testeranto = class extends ClassBuilder {
}
}, class Given extends BaseGiven {
async givenThat(subject, testResource, artifactory, initializer) {
return fullTestInterface.beforeEach(subject, initializer, (fPath, value) => (
// TODO does not work?
artifactory(`beforeEach/${fPath}`, value)
), testResource, this.initialValues);
return fullTestInterface.beforeEach(
subject,
initializer,
(fPath, value) => (
// TODO does not work?
artifactory(`beforeEach/${fPath}`, value)
),
testResource,
this.initialValues
// utils,
);
}
afterEach(store, key, artifactory) {
return new Promise((res) => res(fullTestInterface.afterEach(store, key, (fPath, value) => artifactory(`after/${fPath}`, value))));
Expand Down Expand Up @@ -444,21 +448,6 @@ var NodeWriter = {
}
};

// ../testeranto/dist/module/lib/types.js
init_cjs_shim();
var TBrowser = class {
constructor(browser) {
this.browser = browser;
}
pages() {
return new Promise(async (res, rej) => {
res((await this.browser.pages()).map((p) => {
return p;
}));
});
}
};

// ../testeranto/dist/module/Node.js
var readJson = async (port) => new Promise((resolve, reject) => {
let json = "";
Expand Down Expand Up @@ -501,8 +490,9 @@ var NodeTesteranto = class extends Testeranto {
console.log("connected!", b.isConnected());
return b;
});
const { failed, artifacts, logPromise } = await t.receiveTestResourceConfig(partialTestResource, new TBrowser(browser));
const { failed, artifacts, logPromise } = await t.receiveTestResourceConfig(partialTestResource, browser);
Promise.all([...artifacts, logPromise]).then(async () => {
process.exit(await failed ? 1 : 0);
});
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createRequire } from 'module';const require = createRequire(import.meta.url);
import {
app_default
} from "./chunk-ZYSDJLN5.mjs";
} from "./chunk-Q7IN32QK.mjs";
import {
__commonJS,
__require,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createRequire } from 'module';const require = createRequire(import.meta.url);
import {
Node_default
} from "./chunk-JLEL7NCS.mjs";
} from "./chunk-SQS533HJ.mjs";
import {
__commonJS,
__require,
Expand Down
Loading

0 comments on commit ca95e74

Please sign in to comment.