@lvce-editor/test-worker 15.8.0 → 15.9.0
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/dist/api.d.ts +1 -0
- package/dist/testWorkerMain.js +5 -3
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -673,6 +673,7 @@ interface FindWidget {
|
|
|
673
673
|
|
|
674
674
|
interface Git {
|
|
675
675
|
readonly add: (pathSpec: string) => Promise<void>;
|
|
676
|
+
readonly addAll: () => Promise<void>;
|
|
676
677
|
readonly addRemote: (name: string, remoteUrl: string) => Promise<void>;
|
|
677
678
|
readonly branch: (name: string) => Promise<void>;
|
|
678
679
|
readonly checkout: (ref: string) => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -3976,6 +3976,9 @@ const clone = async (repositoryUrl, cwd) => {
|
|
|
3976
3976
|
const add = async pathSpec => {
|
|
3977
3977
|
await executeExtensionCommand('git.add', pathSpec);
|
|
3978
3978
|
};
|
|
3979
|
+
const addAll = async () => {
|
|
3980
|
+
await add('.');
|
|
3981
|
+
};
|
|
3979
3982
|
const commit = async message => {
|
|
3980
3983
|
await executeExtensionCommand('git.commit', message);
|
|
3981
3984
|
};
|
|
@@ -4062,9 +4065,7 @@ const setConfig = async (key, value) => {
|
|
|
4062
4065
|
await executeExtensionCommand('git.setConfig', key, value);
|
|
4063
4066
|
};
|
|
4064
4067
|
const config = async values => {
|
|
4065
|
-
|
|
4066
|
-
await setConfig(key, value);
|
|
4067
|
-
}
|
|
4068
|
+
await Promise.all(Object.entries(values).map(([key, value]) => setConfig(key, value)));
|
|
4068
4069
|
};
|
|
4069
4070
|
const shouldHaveCommit = async message => {
|
|
4070
4071
|
const commits = await executeExtensionCommand('git.getCommits');
|
|
@@ -4087,6 +4088,7 @@ const shouldHaveInvocations = async invocations => {
|
|
|
4087
4088
|
|
|
4088
4089
|
const Git = {
|
|
4089
4090
|
add,
|
|
4091
|
+
addAll,
|
|
4090
4092
|
addRemote,
|
|
4091
4093
|
branch,
|
|
4092
4094
|
checkout,
|