Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit e80b6ee

Browse files
authored
Merge pull request #104 from mocks-server/pre-release
v2.0 release
2 parents 65dad06 + 9dc3611 commit e80b6ee

File tree

9 files changed

+67
-12
lines changed

9 files changed

+67
-12
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- master
66
- release
7+
- pre-release
78
pull_request:
89
jobs:
910
test:

.github/workflows/publish-to-github.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
registry-url: 'https://npm.pkg.github.com'
1616
# Defaults to the user or organization that owns the workflow file
1717
scope: '@mocks-server'
18-
- run: npm publish
18+
- run: npm publish --tag beta
1919
env:
2020
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-to-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
registry-url: 'https://registry.npmjs.org/'
1414
- run: npm ci
1515
- run: npm run build
16-
- run: npm publish
16+
- run: npm publish --tag beta
1717
env:
1818
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111
### Removed
1212

13+
## [2.0.0-beta.2] - 2021-02-14
14+
15+
### Added
16+
- feat: Add mock-custom-routes-variants path
17+
18+
## [2.0.0-beta.1] - 2021-02-03
19+
20+
### Added
21+
- feat: Add mocks, routes and routes-variants paths
22+
- feat: Add legacy path
23+
1324
## [1.1.0] - 2020-12-25
1425

1526
### Added

index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
export const DEFAULT_BASE_PATH = "/admin";
22
export const SETTINGS = "/settings";
3-
export const BEHAVIORS = "/behaviors";
4-
export const FIXTURES = "/fixtures";
53
export const ABOUT = "/about";
64
export const ALERTS = "/alerts";
5+
6+
export const MOCKS = "/mocks";
7+
export const ROUTES = "/routes";
8+
export const ROUTES_VARIANTS = "/routes-variants";
9+
export const MOCK_CUSTOM_ROUTES_VARIANTS = "/mock-custom-routes-variants";
10+
11+
export const LEGACY = "/legacy";
12+
export const BEHAVIORS = "/behaviors";
13+
export const FIXTURES = "/fixtures";

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mocks-server/admin-api-paths",
3-
"version": "1.1.0",
3+
"version": "2.0.0-beta.2",
44
"description": "Api paths of @mocks-server/plugin-admin-api",
55
"keywords": [
66
"administration",

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
sonar.organization=mocks-server
22
sonar.projectKey=mocks-server-admin-api-paths
3-
sonar.projectVersion=1.1.0
3+
sonar.projectVersion=2.0.0-beta.2
44

55
sonar.javascript.file.suffixes=.js
66
sonar.sourceEncoding=UTF-8

test/index.spec.js

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,59 @@
1-
import { DEFAULT_BASE_PATH, SETTINGS, BEHAVIORS, FIXTURES, ABOUT } from "../index";
1+
import {
2+
DEFAULT_BASE_PATH,
3+
ABOUT,
4+
SETTINGS,
5+
ALERTS,
6+
MOCKS,
7+
ROUTES,
8+
ROUTES_VARIANTS,
9+
MOCK_CUSTOM_ROUTES_VARIANTS,
10+
LEGACY,
11+
BEHAVIORS,
12+
FIXTURES,
13+
} from "../index";
214

315
describe("Exported paths", () => {
416
it("should contain the default api base path", () => {
517
expect(DEFAULT_BASE_PATH).toBeDefined();
618
});
719

20+
it("should contain the about path", () => {
21+
expect(ABOUT).toBeDefined();
22+
});
23+
824
it("should contain the settings path", () => {
925
expect(SETTINGS).toBeDefined();
1026
});
1127

28+
it("should contain the alerts path", () => {
29+
expect(ALERTS).toBeDefined();
30+
});
31+
32+
it("should contain the mocks path", () => {
33+
expect(MOCKS).toBeDefined();
34+
});
35+
36+
it("should contain the routes path", () => {
37+
expect(ROUTES).toBeDefined();
38+
});
39+
40+
it("should contain the routes-variants path", () => {
41+
expect(ROUTES_VARIANTS).toBeDefined();
42+
});
43+
44+
it("should contain the mock-custom-routes-variants path", () => {
45+
expect(MOCK_CUSTOM_ROUTES_VARIANTS).toBeDefined();
46+
});
47+
48+
it("should contain the legacy path", () => {
49+
expect(LEGACY).toBeDefined();
50+
});
51+
1252
it("should contain the behaviors path", () => {
1353
expect(BEHAVIORS).toBeDefined();
1454
});
1555

1656
it("should contain the fixtures path", () => {
1757
expect(FIXTURES).toBeDefined();
1858
});
19-
20-
it("should contain the about path", () => {
21-
expect(ABOUT).toBeDefined();
22-
});
2359
});

0 commit comments

Comments
 (0)