mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
parent
6530cdbeba
commit
f2b20c8eb8
@ -1,10 +1,10 @@
|
|||||||
name: CI
|
name: Unit Test
|
||||||
|
|
||||||
on: pull_request
|
on: pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Test
|
name: Unit Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
15
packages/element-plus/__tests__/ssr.spec.ts
Normal file
15
packages/element-plus/__tests__/ssr.spec.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* @jest-environment node
|
||||||
|
*/
|
||||||
|
|
||||||
|
describe('SSR', () => {
|
||||||
|
test('require', () => {
|
||||||
|
try {
|
||||||
|
process.env.VUE_ENV = 'server'
|
||||||
|
require('../index')
|
||||||
|
} catch (e) {
|
||||||
|
throw Error(e)
|
||||||
|
}
|
||||||
|
expect('pass').toBe('pass')
|
||||||
|
})
|
||||||
|
})
|
@ -6,8 +6,6 @@
|
|||||||
# *utils, __mocks__ directives hooks locale theme*
|
# *utils, __mocks__ directives hooks locale theme*
|
||||||
# which means the result will not contain folder name includes utils
|
# which means the result will not contain folder name includes utils
|
||||||
|
|
||||||
yarn bootstrap
|
|
||||||
|
|
||||||
yarn clean:lib
|
yarn clean:lib
|
||||||
yarn build:esm-bundle
|
yarn build:esm-bundle
|
||||||
tar --exclude=index.esm.js -zcvf ./es.gz ./lib
|
tar --exclude=index.esm.js -zcvf ./es.gz ./lib
|
||||||
|
Loading…
Reference in New Issue
Block a user