Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Oct 10, 2022
1 parent 1f966b2 commit 6c9dee3
Show file tree
Hide file tree
Showing 49 changed files with 57 additions and 725 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/release-github.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/release-npm.yaml

This file was deleted.

13 changes: 1 addition & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
.npm
.eslintcache
.idea/
.aws-sam/
packaged.yaml
node_modules/
coverage/
.nyc_output/
dist/

.aws-secrets
test-env.json
samconfig.toml
dist/
5 changes: 0 additions & 5 deletions .mocharc.json

This file was deleted.

5 changes: 0 additions & 5 deletions .npmignore

This file was deleted.

9 changes: 0 additions & 9 deletions Makefile

This file was deleted.

1 change: 0 additions & 1 deletion RELEASING.md

This file was deleted.

15 changes: 0 additions & 15 deletions features/assembly-diagram-scripts/dom-domain.txt

This file was deleted.

19 changes: 0 additions & 19 deletions features/assembly-diagram-scripts/dom-http-domain.txt

This file was deleted.

11 changes: 0 additions & 11 deletions features/assembly-diagram-scripts/domain.txt

This file was deleted.

15 changes: 0 additions & 15 deletions features/assembly-diagram-scripts/http-domain.txt

This file was deleted.

5 changes: 2 additions & 3 deletions features/step_definitions/steps.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Given, When, Then } from '@cucumber/cucumber'
import { Actor } from '../../src'
import { Actor, eventually } from '@cucumber/screenplay'

import World from '../support/World'
import { Message } from '../src/types'
import { Message } from '../../src/types'
import assert from 'assert'
import eventually from '../../src/eventually'
import getSession from '../support/helpers/getSession'

Given('{actor} is online', async function (this: World, actor: Actor<World>) {
Expand Down
8 changes: 4 additions & 4 deletions features/support/World.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { setWorldConstructor, Before, After, defineParameterType } from '@cucumber/cucumber'
import { AppElements } from '@cucumber/electron'
import { ActorWorld, ActorParameterType } from '../../src/index'
import { ActorWorld, ActorParameterType } from '@cucumber/screenplay'

import Shouty from '../src/Shouty'
import { makeApp } from '../src/server'
import Shouty from '../../src/Shouty'
import { makeApp } from '../../src/server'
import { promisify } from 'util'
import { InboxMessages, Shout, StartSession } from './tasks/types'

defineParameterType({ ...ActorParameterType })
defineParameterType({
name: 'coordinate',
regexp: /\(\s*(\d+),\s*(\d+)\s*\)/,
transformer(x, y) {
transformer(x: string, y: string) {
return { x: +x, y: +y }
},
})
Expand Down
4 changes: 2 additions & 2 deletions features/support/helpers/getDomUser.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createRoot } from 'react-dom/client'
import App from '../../src/components/App'
import App from '../../../src/components/App'
import React from 'react'
import World from '../World'
import { Actor } from '../../../src'
import { Actor } from '@cucumber/screenplay'
import getSession from './getSession'
import userEvent from '@testing-library/user-event'
// import { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'
Expand Down
4 changes: 2 additions & 2 deletions features/support/helpers/getInboxMessages.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Actor } from '../../../src'
import { Actor } from '@cucumber/screenplay'
import World from '../World'
import { Message } from '../../src/types'
import { Message } from '../../../src/types'
import getSession from './getSession'

export default function getInboxMessages(actor: Actor<World>): readonly Message[] {
Expand Down
6 changes: 3 additions & 3 deletions features/support/helpers/getSession.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Actor } from '../../../src'
import { Actor } from '@cucumber/screenplay'
import World from '../World'
import { Session } from '../../src/types'
import HttpSession from '../../src/HttpSession'
import { Session } from '../../../src/types'
import HttpSession from '../../../src/HttpSession'
import NodeEventSource from 'eventsource'

export default function getSession(actor: Actor<World>): Session {
Expand Down
2 changes: 1 addition & 1 deletion features/support/tasks/dom/inboxMessages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Actor } from '../../../../src'
import { Actor } from '@cucumber/screenplay'
import World from '../../World'
import { InboxMessages } from '../types'
import { microdata, toArray } from '@cucumber/microdata'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Actor, eventually } from '../../../../../src'
import { Actor, eventually } from '@cucumber/screenplay'
import World from '../../../World'
import { getByText } from '@testing-library/dom'
import { ClickShoutButton } from './types'
Expand Down
2 changes: 1 addition & 1 deletion features/support/tasks/dom/interactions/typeMessage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Actor } from '../../../../../src'
import { Actor } from '@cucumber/screenplay'
import World from '../../../World'
import { getByLabelText } from '@testing-library/dom'
import userEvent from '@testing-library/user-event'
Expand Down
4 changes: 2 additions & 2 deletions features/support/tasks/dom/interactions/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Action, PromiseAction } from '../../../../../src'
import { Message } from '../../../../src/types'
import { Action, PromiseAction } from '@cucumber/screenplay'
import { Message } from '../../../../../src/types'

export type ClickShoutButton = () => PromiseAction
export type TypeMessage = (message: Message) => Action
2 changes: 1 addition & 1 deletion features/support/tasks/dom/shout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Actor } from '../../../../src'
import { Actor } from '@cucumber/screenplay'
import World from '../../World'
import { Shout } from '../types'
import { typeMessage } from './interactions/typeMessage'
Expand Down
2 changes: 1 addition & 1 deletion features/support/tasks/dom/startSession.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Actor, eventually } from '../../../../src'
import { Actor, eventually } from '@cucumber/screenplay'
import World from '../../World'
import { StartSession } from '../types'
import getDomUser from '../../helpers/getDomUser'
Expand Down
2 changes: 1 addition & 1 deletion features/support/tasks/session/inboxMessages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Actor } from '../../../../src'
import { Actor } from '@cucumber/screenplay'
import { InboxMessages } from '../types'
import World from '../../World'
import getInboxMessages from '../../helpers/getInboxMessages'
Expand Down
4 changes: 2 additions & 2 deletions features/support/tasks/session/shout.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Actor } from '../../../../src'
import { Actor } from '@cucumber/screenplay'
import World from '../../World'
import { Shout } from '../types'
import { Message } from '../../../src/types'
import { Message } from '../../../../src/types'
import getSession from '../../helpers/getSession'

export const shout: Shout = (message: Message) => {
Expand Down
2 changes: 1 addition & 1 deletion features/support/tasks/session/startSession.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Actor } from '../../../../src'
import { Actor } from '@cucumber/screenplay'
import World from '../../World'
import { StartSession } from '../types'
import getSession from '../../helpers/getSession'
Expand Down
4 changes: 2 additions & 2 deletions features/support/tasks/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Action, PromiseAction } from '../../../src'
import { Message } from '../../src/types'
import { Action, PromiseAction } from '@cucumber/screenplay'
import { Message } from '../../../src/types'

export type StartSession = () => PromiseAction
export type Shout = (message: Message) => PromiseAction
Expand Down
68 changes: 0 additions & 68 deletions images/dom-domain.svg

This file was deleted.

Loading

0 comments on commit 6c9dee3

Please sign in to comment.