Skip to content

Commit

Permalink
Rm cloud refs (#2851)
Browse files Browse the repository at this point in the history
  • Loading branch information
niclim authored Aug 7, 2024
1 parent 2e235ab commit 0799dbc
Show file tree
Hide file tree
Showing 51 changed files with 79 additions and 7,083 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "openapi-workspaces",
"license": "MIT",
"private": true,
"version": "0.55.1",
"version": "1.0.0",
"workspaces": [
"projects/json-pointer-helpers",
"projects/openapi-io",
Expand Down
2 changes: 1 addition & 1 deletion projects/fastify-capture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/fastify-capture",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.55.1",
"version": "1.0.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/json-pointer-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/json-pointer-helpers",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.55.1",
"version": "1.0.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/openapi-io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/openapi-io",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.55.1",
"version": "1.0.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/openapi-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/openapi-utilities",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.55.1",
"version": "1.0.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/optic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/optic",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.55.1",
"version": "1.0.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
27 changes: 0 additions & 27 deletions projects/optic/src/__tests__/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,31 +109,4 @@ describe('initializeRules', () => {
initializeRules(config, createOpticClient(''))
).rejects.toThrow(UserError);
});

test('extends ruleset from cloud', async () => {
const mockClient = {
getStandard: jest.fn<any>(),
};
mockClient.getStandard.mockResolvedValue({
config: {
ruleset: [
{ name: 'from-cloud-ruleset', config: {} },
{ name: 'should-be-overwritten', config: { hello: true } },
],
},
});
(createOpticClient as jest.MockedFunction<any>).mockImplementation(
() => mockClient
);

const config: ProjectYmlConfig = {
ruleset: [{ 'should-be-overwritten': { goodbye: false } }],
extends: '@orgslug/rulesetconfigid',
};
await initializeRules(config, createOpticClient(''));
expect(config.ruleset).toEqual([
{ name: 'from-cloud-ruleset', config: {} },
{ name: 'should-be-overwritten', config: { goodbye: false } },
]);
});
});

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0799dbc

Please sign in to comment.