Skip to content

Commit

Permalink
Merge pull request #89 from cyberixae/use_reference_schemas_for_tests
Browse files Browse the repository at this point in the history
Use reference schemas for tests
  • Loading branch information
cyberixae committed Sep 13, 2023
2 parents b104757 + 8c1b3d5 commit f733165
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"eslint-plugin-simple-import-sort": "^5.0.3",
"fp-ts": "^2.11.1",
"jest": "^26.4.2",
"maas-schemas-git-develop": "https://github.com/maasglobal/maas-schemas.git#develop",
"maasglobal-reference-schemas": "^0.0.2",
"monocle-ts": "^2.1.0",
"prettier": "^2.1.2",
"ts-jest": "^26.3.0",
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as ts from 'typescript';
import { main } from '../main';

describe('main', () => {
it('should convert maas-schemas', () => {
it('should convert MaaS Global reference schemas', () => {
const tmpRoot = 'tmp';
fs.mkdirSync(tmpRoot, { recursive: true });
const tmpDir = fs.mkdtempSync(path.join(tmpRoot, 'test-run-'));
Expand All @@ -34,7 +34,7 @@ describe('main', () => {
main({
stderr,
stdout,
args: `--inputFile './node_modules/maas-schemas-git-develop/maas-schemas/schemas/**/*.json' --outputDir ${tsDir} https://schemas.maas.global/ --maskNull`.split(
args: `--inputFile './node_modules/maasglobal-reference-schemas/schemas/**/*.json' --outputDir ${tsDir} https://reference-schemas.maas.global/ --maskNull`.split(
' ',
),
});
Expand Down
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3173,9 +3173,10 @@ lru-cache@^6.0.0:
dependencies:
yallist "^4.0.0"

"maas-schemas-git-develop@https://github.com/maasglobal/maas-schemas.git#develop":
version "0.0.0"
resolved "https://github.com/maasglobal/maas-schemas.git#63e4b54ff579ff30a7a1484f6aac05ce8cb36ef2"
maasglobal-reference-schemas@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/maasglobal-reference-schemas/-/maasglobal-reference-schemas-0.0.2.tgz#12fe6868e0be3b6134e6223c61c31d8ec8310b9f"
integrity sha512-eXdp7kXLBuYIHmbZUJDGDpbrTL79VWUWsTgdhogVA25ep2IMsuMsD/SCHsIbHqlI0dY1KVKslyuPN8rgqloMvQ==

make-dir@^3.0.0:
version "3.1.0"
Expand Down

0 comments on commit f733165

Please sign in to comment.