Skip to content

Commit 3962eae

Browse files
committed
Flatten repo as we just have one package
1 parent dabda34 commit 3962eae

31 files changed

+43
-223
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Royal Icing
3+
Copyright (c) 2020 Patrick Smith
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

Makefile

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
1-
all_packages_json := $(wildcard packages/**/package.json)
2-
all_packages_dirs := $(basename $(dir $(all_packages_json)))
3-
4-
list:
5-
@echo $(all_packages_dirs)
6-
7-
.PHONY: $(all_packages_dirs)
8-
$(foreach package_dir,$(all_packages_dirs),$(package_dir)):
9-
cd $@ && pwd
10-
111
install:
12-
cd packages/core && npm ci
2+
npm ci
133

144
test:
15-
cd packages/core && npm run test
5+
npm t
166

177
build:
18-
cd packages/core && npm run build
8+
npm run build
199

2010
toc:
2111
npx doctoc README.md --maxlevel 3 --notitle

README.md

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<p style="font-size: 400%; line-height: 1; margin: 0">🎬</p>
55

6-
<p>Test if your component fits a role.</p>
6+
<p>Test that your components can play the accessibility roles we need.</p>
77

88
</div>
99

@@ -16,6 +16,7 @@
1616
- [Tabs](#tabs)
1717
- [Checkboxes](#checkboxes)
1818
- [Menus](#menus)
19+
- [Scene](#scene)
1920

2021
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2122

@@ -34,34 +35,34 @@
3435
#### Examples
3536

3637
```ts
37-
import { screenTest, tablist, tabs, tab, tabpanel } from "auditioner";
38+
import { screenTest, tablist, tabs, tab, tabpanel } from 'auditioner';
3839

39-
describe("your tabs component", () => {
40+
describe('your tabs component', () => {
4041
beforeEach(() => render(<Tabs />));
4142

42-
it("renders 3 tabs", () => {
43+
it('renders 3 tabs', () => {
4344
expect(screenTest(tabs())).toHaveLength(3);
4445
});
4546

46-
it("selects first tab", () => {
47-
expect(screenTest(tab("First").selected)).toBeInTheDocument();
47+
it('selects first tab', () => {
48+
expect(screenTest(tab('First').selected)).toBeInTheDocument();
4849
});
4950

50-
it("renders first tabpanel", () => {
51-
expect(screenTest(tabpanel())).toHaveTextContent("First panel");
51+
it('renders first tabpanel', () => {
52+
expect(screenTest(tabpanel())).toHaveTextContent('First panel');
5253
});
5354

54-
describe("when clicking on second tab", () => {
55+
describe('when clicking on second tab', () => {
5556
beforeEach(() => {
56-
user.click(screenTest(tab("Second")));
57+
user.click(screenTest(tab('Second')));
5758
});
5859

59-
it("selects second tab", () => {
60-
expect(screenTest(tab("Second").selected)).toBeInTheDocument();
60+
it('selects second tab', () => {
61+
expect(screenTest(tab('Second').selected)).toBeInTheDocument();
6162
});
6263

63-
it("renders second tabpanel", () => {
64-
expect(screenTest(tabpanel())).toHaveTextContent("Second panel");
64+
it('renders second tabpanel', () => {
65+
expect(screenTest(tabpanel())).toHaveTextContent('Second panel');
6566
});
6667
});
6768
});
@@ -72,18 +73,18 @@ describe("your tabs component", () => {
7273
#### Examples
7374

7475
```ts
75-
import { checkbox, checkboxes, screenTest } from "auditioner";
76+
import { checkbox, checkboxes, screenTest } from 'auditioner';
7677

77-
describe("your form component", () => {
78+
describe('your form component', () => {
7879
beforeEach(() => {
7980
render(<YourForm />);
8081
});
8182

82-
it("has First checkbox", () => {
83-
expect(screenTest(checkbox("First"))).toBeInTheDocument();
83+
it('has First checkbox', () => {
84+
expect(screenTest(checkbox('First'))).toBeInTheDocument();
8485
});
8586

86-
it("has 3 checkboxes", () => {
87+
it('has 3 checkboxes', () => {
8788
expect(screenTest(checkboxes())).toHaveLength(3);
8889
});
8990
});
@@ -94,30 +95,30 @@ describe("your form component", () => {
9495
#### Examples
9596

9697
```ts
97-
import { button, menu, menuitem, menuitems, screenTest } from "auditioner";
98-
import user from "@testing-library/user-event";
98+
import { button, menu, menuitem, menuitems, screenTest } from 'auditioner';
99+
import user from '@testing-library/user-event';
99100

100-
describe("your menu component", () => {
101+
describe('your menu component', () => {
101102
beforeEach(() => {
102103
render(<YourMenu />);
103104
});
104105

105-
describe("when action menu is clicked", () => {
106-
beforeEach(() => user.click(screenTest(button("Actions"))));
106+
describe('when action menu is clicked', () => {
107+
beforeEach(() => user.click(screenTest(button('Actions'))));
107108

108-
it("opens menu", () => {
109-
expect(screenTest(menu("Actions"))).toBeVisible();
109+
it('opens menu', () => {
110+
expect(screenTest(menu('Actions'))).toBeVisible();
110111
});
111112

112-
it("has Cut item", () => {
113-
expect(screenTest(menuitem("Actions"))).toBeVisible();
113+
it('has Cut item', () => {
114+
expect(screenTest(menuitem('Actions'))).toBeVisible();
114115
});
115116

116-
it("has Cut, Copy, Paste items", () => {
117+
it('has Cut, Copy, Paste items', () => {
117118
const [cut, copy, paste] = screenTest(menuitems());
118-
expect(cut).toHaveTextContent("Cut");
119-
expect(copy).toHaveTextContent("Copy");
120-
expect(paste).toHaveTextContent("Paste");
119+
expect(cut).toHaveTextContent('Cut');
120+
expect(copy).toHaveTextContent('Copy');
121+
expect(paste).toHaveTextContent('Paste');
121122
});
122123
});
123124
});
@@ -126,15 +127,15 @@ describe("your menu component", () => {
126127
### Scene
127128

128129
```ts
129-
import { scene } from "auditioner";
130+
import { scene } from 'auditioner';
130131

131132
expect(
132133
screenTest(
133134
scene(
134-
form("Sign up", [
135-
textbox("Email address"),
136-
textbox("Password"),
137-
button("Sign up"),
135+
form('Sign up', [
136+
textbox('Email address'),
137+
textbox('Password'),
138+
button('Sign up'),
138139
])
139140
)
140141
)
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/core/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/core/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/core/README.md

Lines changed: 0 additions & 146 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)