Skip to content

Commit

Permalink
moved any test to root tests folder
Browse files Browse the repository at this point in the history
  • Loading branch information
smastrom committed Aug 12, 2023
1 parent fc6584a commit 9abb072
Show file tree
Hide file tree
Showing 24 changed files with 15 additions and 160 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,5 @@ jobs:
run_install: false
- name: Install dependencies
run: pnpm install
- name: Chrome tests
uses: cypress-io/github-action@v5
with:
working-directory: packages/notivue
install: false
component: true
browser: chrome
- name: Cypress
run: pnpm run test
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"preview": "pnpm -C demo run preview",
"build": "pnpm -C packages/notivue run build",
"build:demo": "pnpm -C demo run build",
"test": "pnpm -C tests run test",
"test": "pnpm -C packages/notivue run build && pnpm -C tests install && pnpm -C tests run test",
"test:gui": "pnpm -C packages/notivue run build && concurrently \"pnpm -C packages/notivue run watch\" \"pnpm -C tests install && pnpm -C tests run test:gui\"",
"prepare": "husky install",
"pretty-quick": "pretty-quick",
"test:gui": "pnpm -C packages/notivue run build && concurrently \"pnpm -C packages/notivue run watch\" \"pnpm -C tests install && pnpm -C tests run test:gui\""
"pretty-quick": "pretty-quick"
},
"devDependencies": {
"@types/node": "^18.17.5",
Expand Down
138 changes: 0 additions & 138 deletions packages/notivue/Notivue/__tests__/components/Notivue.vue

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Notivue from './components/Notivue.vue'

import { Classes } from '../constants'
import { Classes } from '@/Notifications/constants'

it('All elements are accessible', () => {
cy.mount(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Notivue from './components/Notivue.vue'

import { Classes } from '../constants'
import { Classes } from '@/Notifications/constants'

it('Close button dismisses notification', () => {
cy.mount(Notivue)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NotivueIcons, outlinedIcons } from 'notivue'

import Notivue from './components/Notivue.vue'

import { Classes } from '../constants'
import { Classes } from '@/Notifications/constants'

it('All elements are rendered and only exists one element per class', () => {
cy.mount(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Notivue from './components/Notivue.vue'

import { lightTheme, darkTheme, pastelTheme, materialTheme, slateTheme } from 'notivue'
import { Classes } from '../constants'
import { Classes } from '@/Notifications/constants'

describe('Themes', () => {
it('All themes are injected properly', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { defaultConfig } from '@/core/config'

import Notivue from './components/Notivue.vue'

it('All elements should be accessible', () => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RESOLVE_REJECT_DELAY, getRandomOptions } from '../../cypress/support/utils'
import { RESOLVE_REJECT_DELAY, getRandomOptions } from '@/support/utils'

import Notivue from './components/Notivue.vue'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RESOLVE_REJECT_DELAY, randomProps, randomProps2 } from '../../cypress/support/utils'
import { RESOLVE_REJECT_DELAY, randomProps, randomProps2 } from '@/support/utils'

import Notivue from './components/Notivue.vue'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defaultNotificationOptions as defaultOptions } from '@/core/options'
import { RESOLVE_REJECT_DELAY } from '../../cypress/support/utils'
import { RESOLVE_REJECT_DELAY } from '@/support/utils'

import Notivue from './components/Notivue.vue'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RESOLVE_REJECT_DELAY, getRandomOptions } from '../../cypress/support/utils'
import { RESOLVE_REJECT_DELAY, getRandomOptions } from '@/support/utils'

import Notivue from './components/Notivue.vue'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parseText } from '../../cypress/support/utils'
import { hiddenInternalKeys } from '../utils'
import { parseText } from '@/support/utils'
import { hiddenInternalKeys } from '@/Notivue/utils'

import Notivue from './components/Notivue.vue'

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 9abb072

Please sign in to comment.