7d0919a784
* Break out client-navigation and rendering test from basic test * Try with parallelism dialed back to 3 * Update jest-junit for more compatible timings in CircleCI * Bump to test timings * Use filepath for suitename in jest-junit * Store reports as artifacts * Try using classname for timings * Bump * Remove reports from artifacts
22 lines
390 B
JavaScript
22 lines
390 B
JavaScript
import React from 'react'
|
|
import Router from 'next/router'
|
|
|
|
export default class extends React.Component {
|
|
constructor (...args) {
|
|
super(...args)
|
|
this.state = {}
|
|
}
|
|
|
|
componentDidMount () {
|
|
const asPath = Router.asPath
|
|
this.setState({ asPath })
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<div className='as-path-content'>
|
|
{this.state.asPath}
|
|
</div>
|
|
)
|
|
}
|
|
}
|